completion: optionally disable checkout DWIM
[gitweb.git] / builtin / log.c
index d755a596004d4bde7fee4bb833fc3cdb70177fe8..b3b10cc1edba2f6d77fdf4b12c328a7968fb5499 100644 (file)
@@ -1091,8 +1091,7 @@ static const char *set_outdir(const char *prefix, const char *output_directory)
        if (!output_directory)
                return prefix;
 
-       return xstrdup(prefix_filename(prefix, outdir_offset,
-                                      output_directory));
+       return prefix_filename(prefix, output_directory);
 }
 
 static const char * const builtin_format_patch_usage[] = {