summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-05-01 05:18:52 +0200
committerHaru <haru@dotalux.com>2016-05-01 05:18:52 +0200
commita84c02d557cbc30dd51e662bf99439b95ca29859 (patch)
treec7570e1c5d65a5a3d8901e4de07c83d2bd88c033
parent1a2a4f1477ebddcaefd132c141f7bbf64b23f016 (diff)
parent562459d2a293af8273d08a680a01038462faa073 (diff)
downloadhercules-a84c02d557cbc30dd51e662bf99439b95ca29859.tar.gz
hercules-a84c02d557cbc30dd51e662bf99439b95ca29859.tar.bz2
hercules-a84c02d557cbc30dd51e662bf99439b95ca29859.tar.xz
hercules-a84c02d557cbc30dd51e662bf99439b95ca29859.zip
Merge pull request #1277 from 4144/gccwarnings
Fix some issues found by gcc 6 with -O3.
-rw-r--r--src/common/strlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index 8f164f2e9..8a2de1ee0 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -629,6 +629,7 @@ int sv_parse(const char* str, int len, int startoff, char delim, int* out_pos, i
svstate.opt = opt;
svstate.delim = delim;
svstate.done = false;
+ svstate.start = 0;
// parse
count = 0;