t6300: add tests for "-local" date formats
[gitweb.git] / run-command.c
index aad03ab705f301268980079282fcf370b9275c5a..4d73e90fad159184bfdd204b82dd8637ad28a955 100644 (file)
@@ -795,9 +795,9 @@ int finish_async(struct async *async)
 #endif
 }
 
-char *find_hook(const char *name)
+const char *find_hook(const char *name)
 {
-       char *path = git_path("hooks/%s", name);
+       const char *path = git_path("hooks/%s", name);
        if (access(path, X_OK) < 0)
                path = NULL;