]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
src/rrd_fetch_libdbi.c: fix Coverity CID#13634 Logically dead code
authorMarek Schimara <Marek.Schimara@bull.net>
Fri, 17 Jun 2016 11:19:43 +0000 (13:19 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Thu, 23 Jun 2016 14:32:33 +0000 (16:32 +0200)
commit6b16ce14aa04781bafa2d92e35b52868d0ec4d5f
tree424cf1e20281a59243d09b2c7206d6c25ae64e4d
parent05a269023dfd55b21559126a712f002e4490493f
src/rrd_fetch_libdbi.c: fix Coverity CID#13634 Logically dead code

        CWE-561 / https://cwe.mitre.org/data/definitions/561.html

        NOTE: this seems like a copy & paste error; either we compare
        'h1' to (char)-1 in which case the code cannot be reached (the
        same test is already done & it returns from the function), or
        (more likely) it should be 'h2' instead.
src/rrd_fetch_libdbi.c