[asterisk-commits] simon.perreault: branch group/v6-new r273947 -	/team/group/v6-new/main/
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Mon Jul  5 09:29:41 CDT 2010
    
    
  
Author: simon.perreault
Date: Mon Jul  5 09:29:37 2010
New Revision: 273947
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273947
Log:
Do not pass null arguments to printf-like functions
Modified:
    team/group/v6-new/main/netsock2.c
Modified: team/group/v6-new/main/netsock2.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/netsock2.c?view=diff&rev=273947&r1=273946&r2=273947
==============================================================================
--- team/group/v6-new/main/netsock2.c (original)
+++ team/group/v6-new/main/netsock2.c Mon Jul  5 09:29:37 2010
@@ -196,7 +196,7 @@
 	hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
 	if ((e = getaddrinfo(host, port, &hints, &res))) {
 		ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n",
-			host, port, gai_strerror(e));
+			host, S_OR(port, "(null)"), gai_strerror(e));
 		return 0;
 	}
 
@@ -235,7 +235,7 @@
 
 	if ((e = getaddrinfo(host, port, &hints, &res))) {
 		ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n",
-			host, port, gai_strerror(e));
+			host, S_OR(port, "(null)"), gai_strerror(e));
 		return 0;
 	}
 
    
    
More information about the asterisk-commits
mailing list