Commit 91e4bce2 authored by Daniel Salzman's avatar Daniel Salzman

knsupdate: fix possible NULL memset parameter

parent bf6f6da1
......@@ -533,8 +533,11 @@ static int process_lines(knsupdate_params_t *params, FILE *fp)
}
}
memset(buf, 0, buflen);
free(buf);
if (buf != NULL) {
memset(buf, 0, buflen);
free(buf);
}
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment