Skip to content

Commit 22570b6

Browse files
rscharfegitster
authored andcommitted
dir: remove unused variable sb
It had never been used. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5cd83e1 commit 22570b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dir.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ int report_path_error(const char *ps_matched,
385385
/*
386386
* Make sure all pathspec matched; otherwise it is an error.
387387
*/
388-
struct strbuf sb = STRBUF_INIT;
389388
int num, errors = 0;
390389
for (num = 0; num < pathspec->nr; num++) {
391390
int other, found_dup;
@@ -417,7 +416,6 @@ int report_path_error(const char *ps_matched,
417416
pathspec->items[num].original);
418417
errors++;
419418
}
420-
strbuf_release(&sb);
421419
return errors;
422420
}
423421

0 commit comments

Comments
 (0)