[asterisk-commits] trunk r13622 - /trunk/db.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Mar 19 08:53:41 MST 2006


Author: russell
Date: Sun Mar 19 09:53:40 2006
New Revision: 13622

URL: http://svn.digium.com/view/asterisk?rev=13622&view=rev
Log:
convert a few more uses of strlen where ast_strlen_zero should be used

Modified:
    trunk/db.c

Modified: trunk/db.c
URL: http://svn.digium.com/view/asterisk/trunk/db.c?rev=13622&r1=13621&r2=13622&view=diff
==============================================================================
--- trunk/db.c (original)
+++ trunk/db.c Sun Mar 19 09:53:40 2006
@@ -520,15 +520,15 @@
 	char *val = astman_get_header(m, "Val");
 	int res;
 
-	if (!strlen(family)) {
+	if (ast_strlen_zero(family)) {
 		astman_send_error(s, m, "No family specified");
 		return 0;
 	}
-	if (!strlen(key)) {
+	if (ast_strlen_zero(key)) {
 		astman_send_error(s, m, "No key specified");
 		return 0;
 	}
-	if (!strlen(val)) {
+	if (ast_strlen_zero(val)) {
 		astman_send_error(s, m, "No val specified");
 		return 0;
 	}
@@ -551,11 +551,11 @@
 	char tmp[256];
 	int res;
 
-	if (!strlen(family)) {
+	if (ast_strlen_zero(family)) {
 		astman_send_error(s, m, "No family specified.");
 		return 0;
 	}
-	if (!strlen(key)) {
+	if (ast_strlen_zero(key)) {
 		astman_send_error(s, m, "No key specified.");
 		return 0;
 	}



More information about the asterisk-commits mailing list