diff --git a/which/tilde/tilde.c b/which/tilde/tilde.c index 1b76c9f..b59b502 100644 --- a/which/tilde/tilde.c +++ b/which/tilde/tilde.c @@ -196,7 +196,7 @@ tilde_expand (string) int result_size, result_index; result_index = result_size = 0; - if (result = strchr (string, '~')) + if ((result = strchr (string, '~'))) result = (char *)xmalloc (result_size = (strlen (string) + 16)); else result = (char *)xmalloc (result_size = (strlen (string) + 1)); diff --git a/which/which.c b/which/which.c index 33a4178..fe2afda 100644 --- a/which/which.c +++ b/which/which.c @@ -552,7 +552,7 @@ int main(int argc, char *argv[]) while (fgets(buf, sizeof(buf), stdin)) { int looks_like_function_start = 0; - int function_start_has_declare; + int function_start_has_declare = 0; if (read_functions) { // bash version 2.0.5a and older output a pattern for `str' like