Skip to content

Commit

Permalink
pua_xmpp: fix compilation warning
Browse files Browse the repository at this point in the history
> 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.

(cherry picked from commit c3bbe6e)
  • Loading branch information
linuxmaniac authored and miconda committed Jun 27, 2016
1 parent 7d8e4e6 commit 83a8709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pua_xmpp/xmpp2simple.c
Expand Up @@ -374,7 +374,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);
Expand Down

0 comments on commit 83a8709

Please sign in to comment.