summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-01 02:39:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-01 02:50:52 +0300
commit562459d2a293af8273d08a680a01038462faa073 (patch)
treec7570e1c5d65a5a3d8901e4de07c83d2bd88c033 /src/common
parent1a2a4f1477ebddcaefd132c141f7bbf64b23f016 (diff)
downloadhercules-562459d2a293af8273d08a680a01038462faa073.tar.gz
hercules-562459d2a293af8273d08a680a01038462faa073.tar.bz2
hercules-562459d2a293af8273d08a680a01038462faa073.tar.xz
hercules-562459d2a293af8273d08a680a01038462faa073.zip
Fix one issue found by gcc 6 with -O3.
Diffstat (limited to 'src/common')
-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;