]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix null vs empty string check in info app
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Sep 2009 15:31:13 +0000 (15:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 4 Sep 2009 15:31:13 +0000 (15:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14764 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index a4a32f4cafe18c6b56744f4192a0d697f32fb923..75466f3f2980e55f4023d140c66796d6a5c82efb 100644 (file)
@@ -940,7 +940,7 @@ SWITCH_STANDARD_APP(info_function)
        char *buf;
        int level = SWITCH_LOG_INFO;
 
-       if (data) {
+       if (!switch_strlen_zero(data)) {
                level = switch_log_str2level(data);
        }