summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/string_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/string_i.h')
-rw-r--r--pjlib/include/pj/string_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pjlib/include/pj/string_i.h b/pjlib/include/pj/string_i.h
index 1590b049..b5308a3e 100644
--- a/pjlib/include/pj/string_i.h
+++ b/pjlib/include/pj/string_i.h
@@ -194,6 +194,7 @@ PJ_IDEF(int) pj_strcmp2( const pj_str_t *str1, const char *str2 )
copy2.ptr = (char*)str2;
copy2.slen = pj_ansi_strlen(str2);
} else {
+ copy2.ptr = NULL;
copy2.slen = 0;
}
@@ -297,6 +298,7 @@ PJ_IDEF(int) pj_stricmp2( const pj_str_t *str1, const char *str2)
copy2.ptr = (char*)str2;
copy2.slen = pj_ansi_strlen(str2);
} else {
+ copy2.ptr = NULL;
copy2.slen = 0;
}