summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf2b682)
raw | patch | inline | side by side (parent: bf2b682)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 16 Sep 2011 13:04:31 +0000 (13:04 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 16 Sep 2011 13:04:31 +0000 (13:04 +0000) |
added missing brackets after if, backported fix from trunk to 1.4 while doing it
-- patch by x @ zamyteam.org
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2199 a5681a0c-68f1-0310-ab6d-d61299d08faa
-- patch by x @ zamyteam.org
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2199 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 bbc1c490bc245123978413b1806a96b0fead5812..11c1e3357b08d18ea35140469ff82dcda53afd85 100644 (file)
--- a/src/rrd_client.c
+++ b/src/rrd_client.c
{
int status = 0;
- if (addr == NULL)
+ if (addr == NULL) {
addr = getenv (ENV_RRDCACHED_ADDRESS);
+ }
- if (addr == NULL)
- return 0;
+ if (addr == NULL || ! strcmp(addr,"") ) {
+ addr = NULL;
+ return 0;
+ }
pthread_mutex_lock(&lock);