{"thread":{"id":"39376","subject":"[PATCH] dir: remove unused variable sb","startedAt":"2015-05-19T22:13:33Z","lastAt":"2015-05-19T22:13:33Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"261613","messageId":"555BB58D.1080202@web.de","threadId":"39376","inReplyTo":null,"subject":"[PATCH] dir: remove unused variable sb","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2015-05-19T22:13:33Z","receivedAt":"2015-05-19T22:13:33Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"It had never been used.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\n---\nThe parameter prefix of report_path_error() is not (yet?) used either.\n\n dir.c | 2 --\n 1 file changed, 2 deletions(-)\n\ndiff --git a/dir.c b/dir.c\nindex 0c38d86..bc6c682 100644\n--- a/dir.c\n+++ b/dir.c\n@@ -385,7 +385,6 @@ int report_path_error(const char *ps_matched,\n \t/*\n \t * Make sure all pathspec matched; otherwise it is an error.\n \t */\n-\tstruct strbuf sb = STRBUF_INIT;\n \tint num, errors = 0;\n \tfor (num = 0; num < pathspec->nr; num++) {\n \t\tint other, found_dup;\n@@ -417,7 +416,6 @@ int report_path_error(const char *ps_matched,\n \t\t      pathspec->items[num].original);\n \t\terrors++;\n \t}\n-\tstrbuf_release(&sb);\n \treturn errors;\n }\n \n-- \n2.4.1\n"}]}