Cleanup unpack_object_header to use only offsets.
[gitweb.git] / exec_cmd.c
index f2133ec93facc7072c69ebe15d2c911842ff60c8..e30936d72cd48822b43ec7568d5fcafc76a7659e 100644 (file)
@@ -5,7 +5,7 @@
 
 extern char **environ;
 static const char *builtin_exec_path = GIT_EXEC_PATH;
-static const char *current_exec_path = NULL;
+static const char *current_exec_path;
 
 void git_set_exec_path(const char *exec_path)
 {
@@ -98,8 +98,8 @@ int execv_git_cmd(const char **argv)
                argv[0] = git_command;
 
                if (getenv("GIT_TRACE")) {
-                       fputs("trace: exec:", stderr);
                        const char **p = argv;
+                       fputs("trace: exec:", stderr);
                        while (*p) {
                                fputc(' ', stderr);
                                sq_quote_print(stderr, *p);