Fix warnings about passing uninitialized buffers into functions

Most of these buffers were never actually inspected, but it's still
bad style.
This commit is contained in:
Nick Mathewson
2017-09-12 21:09:18 -04:00
parent 491b6de168
commit 4ff170d7b1
11 changed files with 32 additions and 14 deletions
+1
View File
@@ -161,6 +161,7 @@ get_token_arguments(memarea_t *area, directory_token_t *tok,
char *cp = mem;
int j = 0;
char *args[MAX_ARGS];
memset(args, 0, sizeof(args));
while (*cp) {
if (j == MAX_ARGS)
return -1;