aboutsummaryrefslogtreecommitdiffstats
path: root/main/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/utils.c')
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index d117174f6..0b96d8b88 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -1263,7 +1263,7 @@ void __ast_string_field_index_build_va(struct ast_string_field_mgr *mgr,
otherwise, use the empty space at the end of the current
pool
*/
- if (fields[index][0] != '0') {
+ if (fields[index][0] != '\0') {
target = (char *) fields[index];
available = strlen(fields[index]) + 1;
} else {