summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/string_i.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-10-26 09:02:28 +0000
committerBenny Prijono <bennylp@teluu.com>2007-10-26 09:02:28 +0000
commit49e06207a670beaf95fdbdd91893d4392aa86835 (patch)
tree7dfe18e8b50cb314b23389041e9618fe912307e7 /pjlib/include/pj/string_i.h
parent90e2c2b9f5922d3959434b24bd1829fdb18e0950 (diff)
Fixed warnings in PJLIB string_i.h about variable may not get initialized
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1527 74dad513-b988-da41-8d7b-12977e46ad98
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;
}