[sr-dev] git:master:c3bbe6e0: pua_xmpp: fix compilation warning

Victor Seva linuxmaniac at torreviejawireless.org
Tue Jun 7 12:19:49 CEST 2016


Module: kamailio
Branch: master
Commit: c3bbe6e059ade56959b68e6caae2f8521734f502
URL: https://github.com/kamailio/kamailio/commit/c3bbe6e059ade56959b68e6caae2f8521734f502

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at 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/c3bbe6e059ade56959b68e6caae2f8521734f502.diff
Patch: https://github.com/kamailio/kamailio/commit/c3bbe6e059ade56959b68e6caae2f8521734f502.patch

---

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);




More information about the sr-dev mailing list