X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_client.c;h=5481ba3b2622355e728d4f2337ddb2b1648fb380;hb=1f71071097f52e789c66348154b6da420ca33c08;hp=51b2eb8af2bb1c1407c6cbe5c665c0d7e3c94f46;hpb=765772ba1d71e8581f9e65c8c3579997bba5890e;p=rrdtool.git diff --git a/src/rrd_client.c b/src/rrd_client.c index 51b2eb8..5481ba3 100644 --- a/src/rrd_client.c +++ b/src/rrd_client.c @@ -492,7 +492,7 @@ int rrdc_is_connected(const char *daemon_addr) /* {{{ */ * 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; @@ -657,7 +657,7 @@ int rrdc_connect (const char *addr) /* {{{ */ addr = getenv (ENV_RRDCACHED_ADDRESS); } - if (addr == NULL || ! strcmp(addr,"")) { + if (addr == NULL || strcmp(addr,"") == 0) { addr = NULL; return 0; }