summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2499f2f)
raw | patch | inline | side by side (parent: 2499f2f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 24 Nov 2011 10:55:18 +0000 (10:55 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 24 Nov 2011 10:55:18 +0000 (10:55 +0000) |
program/src/rrd_client.c | patch | blob | history |
index 51b2eb8af2bb1c1407c6cbe5c665c0d7e3c94f46..5481ba3b2622355e728d4f2337ddb2b1648fb380 100644 (file)
--- a/program/src/rrd_client.c
+++ b/program/src/rrd_client.c
* but it is not specified in the current command.
* Daemon is only implied in this case if set in ENV
*/
- if (addr != NULL && ! strcmp(addr,""))
+ if (addr != NULL && strcmp(addr,"") != 0)
return 1;
else
return 0;
addr = getenv (ENV_RRDCACHED_ADDRESS);
}
- if (addr == NULL || ! strcmp(addr,"")) {
+ if (addr == NULL || strcmp(addr,"") == 0) {
addr = NULL;
return 0;
}