Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
flow:string:ascii: Fuix unintialized variable
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
  • Loading branch information
ceolin committed Sep 11, 2015
1 parent df1bc31 commit 5b81267
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/flow/string/string-ascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,10 @@ prefix_suffix_match_do(struct string_prefix_suffix_data *mdata,
bool ret = false;
int32_t in_str_len, sub_str_len, off;

if (!new_in_str)
if (!new_in_str) {
in_str_len = strlen(mdata->in_str);
goto starts_with;
}

free(mdata->in_str);
mdata->in_str = strdup(new_in_str);
Expand Down

0 comments on commit 5b81267

Please sign in to comment.