[svn-commits] branch oej/res_config_ldap r34550 - /team/oej/res_config_ldap/res/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 16 17:28:28 MST 2006


Author: russell
Date: Fri Jun 16 19:28:27 2006
New Revision: 34550

URL: http://svn.digium.com/view/asterisk?rev=34550&view=rev
Log:
use ast_strlen_zero

Modified:
    team/oej/res_config_ldap/res/res_config_ldap.c

Modified: team/oej/res_config_ldap/res/res_config_ldap.c
URL: http://svn.digium.com/view/asterisk/team/oej/res_config_ldap/res/res_config_ldap.c?rev=34550&r1=34549&r2=34550&view=diff
==============================================================================
--- team/oej/res_config_ldap/res/res_config_ldap.c (original)
+++ team/oej/res_config_ldap/res/res_config_ldap.c Fri Jun 16 19:28:27 2006
@@ -154,11 +154,11 @@
 				*p = '\0';
 				p--;
 			}
-			if (*start == '\0') {
+			if (ast_strlen_zero(start)) {
 				ast_log(LOG_WARNING,
 						"Empty variable name in attribute: %s in %s\n",
 						attribute_string, table_config->table_name);
-			} else if (*value == '\0') {
+			} else if (ast_strlen_zero(value)) {
 				ast_log(LOG_WARNING,
 						"Empty ldap attribute name in attribute: %s in %s\n",
 						attribute_string, table_config->table_name);
@@ -410,7 +410,7 @@
 		cbasedn = substituted(channel, basedn);
 		if (*cbasedn == '"') {
 			cbasedn++;
-			if (*cbasedn != '\0') {
+			if (!ast_strlen_zero(cbasedn)) {
 				int len = strlen(cbasedn);
 				if (cbasedn[len - 1] == '"')
 					cbasedn[len - 1] = '\0';



More information about the svn-commits mailing list