From: Michael Jerris Date: Fri, 16 May 2008 17:18:57 +0000 (+0000) Subject: remove redundant null check. Found by Klockwork (www.klocwork.com) X-Git-Tag: v1.0-rc6~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efd78441d69bd65cebfccb8fc612a6dfe330102a;p=thirdparty%2Ffreeswitch.git remove redundant null check. Found by Klockwork (www.klocwork.com) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8444 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_event.c b/src/switch_event.c index 5bc27221d0..423983c298 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -790,7 +790,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch } } - switch_snprintf(buf + len, dlen - len, "%s: %s\n", hp->name, switch_strlen_zero(encode_buf) ? "_undef_" : encode_buf); + switch_snprintf(buf + len, dlen - len, "%s: %s\n", hp->name, *encode_buf == '\0' ? "_undef_" : encode_buf); len = strlen(buf); }