]> granicus.if.org Git - curl/commit
parseconfig: skip a NULL check
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Oct 2014 08:29:06 +0000 (10:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Oct 2014 08:29:06 +0000 (10:29 +0200)
commitdddb2aab8d8961fe1483258bd64cbf43b972ce0a
treea63d0dde4c7ae1e61c8f1b3910e328d89379634e
parentb7d3338df2843a064747d8928b0a9e8a2200e38d
parseconfig: skip a NULL check

Coverity CID 1154198. This NULL check implies that the pointer _can_ be
NULL at this point, which it can't. Thus it is dead code. It tricks
static analyzers to warn about dereferencing the pointer since the code
seems to imply it can be NULL.
src/tool_parsecfg.c