Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
64fcd0e6
Commit
64fcd0e6
authored
Jul 24, 2015
by
antirez
Browse files
SDS: avoid compiler warning in sdsIncrLen().
parent
93525125
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sds.c
View file @
64fcd0e6
...
...
@@ -344,6 +344,7 @@ void sdsIncrLen(sds s, int incr) {
len
=
(
sh
->
len
+=
incr
);
break
;
}
default:
len
=
0
;
/* Just to avoid compilation warnings. */
}
s
[
len
]
=
'\0'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment