summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4be3fb)
raw | patch | inline | side by side (parent: d4be3fb)
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/trunk/program@2199 a5681a0c-68f1-0310-ab6d-d61299d08faa
-- patch by x @ zamyteam.org
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/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 e3790f6b24e2ab8177337cd00a998f16fd5708e2..51b2eb8af2bb1c1407c6cbe5c665c0d7e3c94f46 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 || ! strcmp(addr,""))
+ if (addr == NULL || ! strcmp(addr,"")) {
addr = NULL;
return 0;
+ }
pthread_mutex_lock(&lock);