From b73eee926b5a05c059b99f2aca5eae9d0ade24aa Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 19 Aug 2009 15:18:02 +0000 Subject: [PATCH] and is && and not binary & normally ... (thanks Bernhard) git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1897 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 1505d5f7..6261512c 100644 --- a/program/src/rrd_graph.c +++ b/program/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; -- 2.30.2