[svn-commits] russell: trunk r248534 - /trunk/funcs/func_strings.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 24 00:39:31 CST 2010


Author: russell
Date: Wed Feb 24 00:39:27 2010
New Revision: 248534

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=248534
Log:
Remove unnecessary warning message, make a couple of formatting tweaks

Modified:
    trunk/funcs/func_strings.c

Modified: trunk/funcs/func_strings.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_strings.c?view=diff&rev=248534&r1=248533&r2=248534
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Wed Feb 24 00:39:27 2010
@@ -1056,14 +1056,13 @@
 {
 	char *bufptr = buf, *dataptr = data;
 
-	if (len < 3){ /* at least two for quotes and one for binary zero */
+	if (len < 3) { /* at least two for quotes and one for binary zero */
 		ast_log(LOG_ERROR, "Not enough buffer");
 		return -1;
 	}
 
 	if (ast_strlen_zero(data)) {
-		ast_log(LOG_WARNING, "No argument specified!\n");
-		ast_copy_string(buf,"\"\"",len);
+		ast_copy_string(buf, "\"\"", len);
 		return 0;
 	}
 




More information about the svn-commits mailing list