As pointed out by HarryC, we need to do nullpointerchecks here.
[citadel.git] / citadel / modules / migrate / serv_migrate.c
index f70493e825a085ee968a80519f7a4540157c1486..e82ee8a04d4eadc339151c63db77d715c10ee852 100644 (file)
@@ -69,6 +69,10 @@ void xml_strout(char *str) {
 
        char *c = str;
 
+       if (str == NULL) {
+               return;
+       }
+
        while (*c != 0) {
                if (*c == '\"') {
                        client_write(""", 6);