From: oetiker Date: Wed, 19 Aug 2009 15:18:02 +0000 (+0000) Subject: and is && and not binary & normally ... (thanks Bernhard) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6dedd66fb0f87936ce1472a77a6a0e08b6fcbd9;p=rrdtool.git and is && and not binary & normally ... (thanks Bernhard) git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1897 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 1505d5f..6261512 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1633,7 +1633,7 @@ int leg_place( int *legspace; char *tab; - if (!(im->extra_flags & NOLEGEND) & !(im->extra_flags & ONLY_GRAPH)) { + if (!(im->extra_flags & NOLEGEND) && !(im->extra_flags & ONLY_GRAPH)) { if ((legspace = (int*)(malloc(im->gdes_c * sizeof(int)))) == NULL) { rrd_set_error("malloc for legspace"); return -1; @@ -2647,7 +2647,7 @@ void grid_paint( } /* graph labels */ - if (!(im->extra_flags & NOLEGEND) & !(im->extra_flags & ONLY_GRAPH)) { + if (!(im->extra_flags & NOLEGEND) && !(im->extra_flags & ONLY_GRAPH)) { for (i = 0; i < im->gdes_c; i++) { if (im->gdes[i].legend[0] == '\0') continue;