]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
src/rrd_graph.c: fix Coverity CID#32414 Array compared against 0
authorMarek Schimara <Marek.Schimara@bull.net>
Wed, 15 Jun 2016 12:52:33 +0000 (14:52 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Thu, 23 Jun 2016 14:32:33 +0000 (16:32 +0200)
commit29514a6866de3f6d74aa9956ae8d2efeac68829b
treeb52cbed26a87a9798a8fd4ec01e7c22f70e1293e
parent094eacf294640b9067de8b659b5701401eec9d5a
src/rrd_graph.c: fix Coverity CID#32414 Array compared against 0

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

        'im' declared as:      image_desc_t *im
        im->gdes[i] is:        graph_desc_t *gdes; /* points to an array of graph elements */
        im->gdes[i].format is: char format[FMT_LEG_LEN + 5];  /* format for PRINT AND GPRINT */

        Comparing a stack variable to NULL doesn't make sense.
src/rrd_graph.c