summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6f8039)
raw | patch | inline | side by side (parent: f6f8039)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2220 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_client.c | patch | blob | history |
diff --git a/src/rrd_client.c b/src/rrd_client.c
index 11c1e3357b08d18ea35140469ff82dcda53afd85..e7c227b8564338c1d74ab2f29c8bd033d459944d 100644 (file)
--- a/src/rrd_client.c
+++ b/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 (getenv(ENV_RRDCACHED_ADDRESS) != NULL)
+ char *addr = getenv(ENV_RRDCACHED_ADDRESS);
+ 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;
}