libss: fix potential null dereference if realloc() fails

Addresses-Coverity-Id: #1153630

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
maint-test
Theodore Ts'o 2014-01-10 21:13:15 -05:00
parent f7d7905976
commit b7ef62b295
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ char **ss_parse(int sci_idx, register char *line_ptr, int *argc_ptr)
parse_mode = TOKEN;
cp = line_ptr;
new_argv = NEW_ARGV (argv, argc);
if (argv == NULL) {
if (new_argv == NULL) {
free(argv);
*argc_ptr = 0;
return NULL;