{"thread":{"id":"663","subject":"[PATCH] Declare stacked variables before the first statement.","startedAt":"2005-05-19T13:23:18Z","lastAt":"2005-05-19T13:23:18Z","messageCount":1,"participants":["Thomas Glanzmann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"3545","messageId":"20050519132318.GH12796@cip.informatik.uni-erlangen.de","threadId":"663","inReplyTo":null,"subject":"[PATCH] Declare stacked variables before the first statement.","fromName":"Thomas Glanzmann","fromEmail":"sithglan@stud.uni-erlangen.de","sentAt":"2005-05-19T13:23:18Z","receivedAt":"2005-05-19T13:23:18Z","isPatch":true,"sender":{"key":"sithglan@stud.uni-erlangen.de","avatar":null},"body":"[PATCH] Declare stacked variables before the first statement.\n\nSigned-off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>\n\n--- a/diff.c\n+++ b/diff.c\n@@ -83,7 +83,7 @@\n \t\t\t const char *name_b,\n \t\t\t struct diff_tempfile *temp)\n {\n-\tint i, next_at;\n+\tint i, next_at, cmd_size;\n \tconst char *diff_cmd = \"diff -L'%s%s' -L'%s%s'\";\n \tconst char *diff_arg  = \"'%s' '%s'||:\"; /* \"||:\" is to return 0 */\n \tconst char *input_name_sq[2];\n@@ -100,7 +100,7 @@\n \t * we use 2 spaces around diff-opts, and we need to count\n \t * terminating NUL, so we subtract 9 here.\n \t */\n-\tint cmd_size = (strlen(diff_cmd) + strlen(diff_opts) +\n+\tcmd_size = (strlen(diff_cmd) + strlen(diff_opts) +\n \t\t\tstrlen(diff_arg) - 9);\n \tfor (i = 0; i < 2; i++) {\n \t\tinput_name_sq[i] = sq_expand(temp[i].name);\n"}]}