- sorry, forgot to check a pointer
authorSimo Sorce <idra@samba.org>
Tue, 3 Jul 2001 00:54:55 +0000 (00:54 +0000)
committerSimo Sorce <idra@samba.org>
Tue, 3 Jul 2001 00:54:55 +0000 (00:54 +0000)
source/lib/interface.c

index 48070c4446ada945cdce1fb333e91ce8b8ec0913..e16afa45af06520350f36d951133f96ffa458689 100644 (file)
@@ -215,9 +215,11 @@ void load_interfaces(void)
                return;
        }
 
-       while (*ptr) {
-               interpret_interface(*ptr);
-               ptr++;
+       if (ptr) {
+               while (*ptr) {
+                       interpret_interface(*ptr);
+                       ptr++;
+               }
        }
 
        if (!local_interfaces) {