Catch NULL ptr
authoraland <aland>
Fri, 4 Nov 2005 19:21:23 +0000 (19:21 +0000)
committeraland <aland>
Fri, 4 Nov 2005 19:21:23 +0000 (19:21 +0000)
src/main/xlat.c

index dbe35f5..a90b9a4 100644 (file)
@@ -529,6 +529,8 @@ void xlat_unregister(const char *module, RAD_XLAT_FUNC func)
 
        func = func;            /* -Wunused */
 
+       if (!module) return;
+
        strNcpy(my_xlat.module, module, sizeof(my_xlat.module));
        my_xlat.length = strlen(my_xlat.module);