]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: pointless check CID 1060963
authorNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:30:15 +0000 (11:30 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:30:15 +0000 (11:30 -0500)
src/mod/endpoints/mod_skinny/skinny_server.c

index c1be92c3c4ce147e7b4b591b8e686bae2f177b8c..d2c4cd1ca7dddb39880843de032e1d1103fa9908 100644 (file)
@@ -112,7 +112,7 @@ switch_status_t skinny_create_incoming_session(listener_t *listener, uint32_t *l
 
        skinny_line_get(listener, *line_instance_p, &button);
 
-       if (!button || !button->shortname) {
+       if (!button || !button->shortname[0]) {
                skinny_log_l(listener, SWITCH_LOG_CRIT, "Line %d not found on device\n", *line_instance_p);
                goto error;
        }