Merge branch 'rt/zlib-smaller-window'
[gitweb.git] / builtin / commit.c
index cb738574f729e91ff239f12db3f3f1ef1ef9570c..776fa81f7484e2bc54651006097f52e0e0f740a8 100644 (file)
@@ -274,7 +274,7 @@ static int list_paths(struct string_list *list, const char *with_tree,
                        item->util = item; /* better a valid pointer than a fake one */
        }
 
-       return report_path_error(m, pattern, prefix ? strlen(prefix) : 0);
+       return report_path_error(m, pattern, prefix);
 }
 
 static void add_remove_files(struct string_list *list)