Skip to content
Snippets Groups Projects
Commit a060cb1d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'static_analysis_bugs' into 'master'

Fix incorrect type in parser's realloc()

See merge request !1078
parents eb50a813 66ca0f9e
Branches
Tags
1 merge request!1078Fix incorrect type in parser's realloc()
......@@ -128,7 +128,7 @@ static int parse_quoted_strings(const char *line, char ***result) {
word[nchar] = '\0';
if (count <= nwords) {
count += 1;
strings = (char **)realloc(strings, count * sizeof(char));
strings = (char **)realloc(strings, count * sizeof(char *));
}
strings[nwords] = (char *)malloc((strlen(word) + 1) * sizeof(char));
strcpy(strings[nwords], trim_both(word));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment