[asterisk-commits] trunk r13621 - /trunk/image.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Mar 19 08:42:51 MST 2006
Author: russell
Date: Sun Mar 19 09:42:49 2006
New Revision: 13621
URL: http://svn.digium.com/view/asterisk?rev=13621&view=rev
Log:
convert a couple uses of strlen() to use ast_strlen_zero()
Modified:
trunk/image.c
Modified: trunk/image.c
URL: http://svn.digium.com/view/asterisk/trunk/image.c?rev=13621&r1=13620&r2=13621&view=diff
==============================================================================
--- trunk/image.c (original)
+++ trunk/image.c Sun Mar 19 09:42:49 2006
@@ -97,12 +97,12 @@
static void make_filename(char *buf, int len, char *filename, const char *preflang, char *ext)
{
if (filename[0] == '/') {
- if (preflang && strlen(preflang))
+ if (!ast_strlen_zero(preflang))
snprintf(buf, len, "%s-%s.%s", filename, preflang, ext);
else
snprintf(buf, len, "%s.%s", filename, ext);
} else {
- if (preflang && strlen(preflang))
+ if (!ast_strlen_zero(preflang))
snprintf(buf, len, "%s/%s/%s-%s.%s", ast_config_AST_VAR_DIR, "images", filename, preflang, ext);
else
snprintf(buf, len, "%s/%s/%s.%s", ast_config_AST_VAR_DIR, "images", filename, ext);
More information about the asterisk-commits
mailing list