Replace unsetenv() and setenv() with older putenv().
[gitweb.git] / ssh-push.c
index ee424a8712fad002f0a6962c3b7067fe25aed91a..5bd4569974c3c6851feb006a838fe69769388673 100644 (file)
@@ -105,10 +105,12 @@ int main(int argc, char **argv)
         char *commit_id;
         char *url;
        int fd_in, fd_out;
-       const char *prog = getenv("GIT_SSH_PULL") ? : "git-ssh-pull";
+       const char *prog;
        unsigned char sha1[20];
        char hex[41];
 
+       prog = getenv("GIT_SSH_PULL");
+       if (!prog) prog = "git-ssh-pull";
        while (arg < argc && argv[arg][0] == '-') {
                if (argv[arg][1] == 'w')
                        arg++;