]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove redundant null check. Found by Klockwork (www.klocwork.com)
authorMichael Jerris <mike@jerris.com>
Fri, 16 May 2008 17:18:57 +0000 (17:18 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 May 2008 17:18:57 +0000 (17:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8444 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_event.c

index 5bc27221d0bf1eff270070a684718e18254aa781..423983c298c33855adead7d34ec59a0314ef1087 100644 (file)
@@ -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);
        }