]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh blame normB
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 26 Sep 2008 16:59:13 +0000 (16:59 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 26 Sep 2008 16:59:13 +0000 (16:59 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@567 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_io.c

index 9b69349925cd5ab49b825bd113787651b3d054ea..0cbef9f8ab520c64013483f12a4701a491670ac4 100644 (file)
@@ -1994,7 +1994,9 @@ static zap_status_t load_config(void)
                                        continue;
                                }
 
-                               name = strchr(type, ' ');
+                               if ((name = strchr(type, ' '))) {
+                                       *name++ = '\0';
+                               }
 
                                zap_mutex_lock(globals.mutex);
                                if (!(zio = (zap_io_interface_t *) hashtable_search(globals.interface_hash, type))) {