git_setup_gettext: plug memory leak
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index 3a89893712e6b327e714ad81d12d3e4ca354926c..48432f9fb86cfa4b0b2dd83d608157f8b7d1d949 100644 (file)
--- a/git.c
+++ b/git.c
@@ -83,7 +83,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
                 */
                if (skip_prefix(cmd, "--exec-path", &cmd)) {
                        if (*cmd == '=')
-                               git_set_argv_exec_path(cmd + 1);
+                               git_set_exec_path(cmd + 1);
                        else {
                                puts(git_exec_path());
                                exit(0);