summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d25c9f)
raw | patch | inline | side by side (parent: 1d25c9f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 19 Aug 2009 15:18:02 +0000 (15:18 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 19 Aug 2009 15:18:02 +0000 (15:18 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index 1505d5f780456277c0473e2cd037ce618f23c1a4..6261512c104c0e5fddca77997d1efc388f4765c1 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
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;
}
/* 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;