Closed larchunix closed 6 years ago
Merged, thanks!
On second thought, maybe a better fix was to add the check later like this:
if (lver) {
if (info && strcmp (info, "local") != 0) {
....
if (ver && strcmp (ver, lver) != 0) {
printf ( ... )
}
}
}
Yeah, that would probably be better.
@f2404 would you mind pushing a fix or do you prefer a new PR ?
I can fix it myself. Thanks again!
A possible use of
NULL
pointer has been identified by clang static analyzer:Add a
NULL
pointer check to fix the warning.