Skip to content
Snippets Groups Projects
Commit c75a81cd authored by deuce's avatar deuce
Browse files

"fix" "issue" found by scan-build.

Not impressed yet.  :-)
parent 7c6618e4
Branches
Tags
No related merge requests found
...@@ -1001,6 +1001,8 @@ static bool parse_sub_parameters(struct sub_params *sub, struct esc_seq *seq, un ...@@ -1001,6 +1001,8 @@ static bool parse_sub_parameters(struct sub_params *sub, struct esc_seq *seq, un
for (p=seq->param[param]; *p; p++) for (p=seq->param[param]; *p; p++)
if (*p == ':') if (*p == ':')
sub->param_count++; sub->param_count++;
if (sub->param_count == 0)
return true;
sub->param_int = malloc(sub->param_count * sizeof(sub->param_int[0])); sub->param_int = malloc(sub->param_count * sizeof(sub->param_int[0]));
if (sub->param_int == NULL) if (sub->param_int == NULL)
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment