Module: kamailio
Branch: master
Commit: c3bbe6e059ade56959b68e6caae2f8521734f502
URL:
https://github.com/kamailio/kamailio/commit/c3bbe6e059ade56959b68e6caae2f85…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-06-06T12:05:39+02:00
pua_xmpp: fix compilation warning
xmpp2simple.c:372:10: warning: expression which
evaluates to zero treated as a null pointer constant of type 'char *'
[-Wnon-literal-null-conversion]
slash= '\0';
^~~~
1 warning generated.
---
Modified: modules/pua_xmpp/xmpp2simple.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c3bbe6e059ade56959b68e6caae2f85…
Patch:
https://github.com/kamailio/kamailio/commit/c3bbe6e059ade56959b68e6caae2f85…
---
diff --git a/modules/pua_xmpp/xmpp2simple.c b/modules/pua_xmpp/xmpp2simple.c
index 0d14125..709351c 100644
--- a/modules/pua_xmpp/xmpp2simple.c
+++ b/modules/pua_xmpp/xmpp2simple.c
@@ -369,7 +369,7 @@ int build_publish(xmlNodePtr pres_node, int expires)
return -1;
}
strcpy(resource, slash+1);
- slash= '\0';
+ slash= NULL;
}
pres_uri= euri_xmpp_sip(uri);
xmlFree(uri);