projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix memleak
[awesomized/libmemcached]
/
src
/
bin
/
memrm.cc
diff --git
a/src/bin/memrm.cc
b/src/bin/memrm.cc
index c2b4a36f7d6c27e33db13b7bb0d8f34a732a5426..d2e84e2309620afecd5e080dbc06c979e2c3143b 100644
(file)
--- a/
src/bin/memrm.cc
+++ b/
src/bin/memrm.cc
@@
-190,7
+190,7
@@
static void options_parse(int argc, char *argv[]) {
case OPT_EXPIRE: /* --expire */
errno = 0;
opt_expire = (time_t) strtoll(optarg, (char **) NULL, 10);
case OPT_EXPIRE: /* --expire */
errno = 0;
opt_expire = (time_t) strtoll(optarg, (char **) NULL, 10);
- if (errno
!= 0
) {
+ if (errno) {
std::cerr << "Incorrect value passed to --expire: `" << optarg << "`" << std::endl;
exit(EXIT_FAILURE);
}
std::cerr << "Incorrect value passed to --expire: `" << optarg << "`" << std::endl;
exit(EXIT_FAILURE);
}