Kill some dead stores and fix a null pointer deref, found by clang.

This commit is contained in:
Nicholas Marriott
2009-07-20 07:31:10 +00:00
parent ff2cc0e387
commit 73732ffa05
2 changed files with 6 additions and 6 deletions

View File

@ -140,6 +140,8 @@ cmd_command_prompt_callback(void *data, const char *s)
}
}
if (buf == NULL)
return (0);
buf[len] = '\0';
s = buf;
}