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
/
memtouch.cc
diff --git
a/src/bin/memtouch.cc
b/src/bin/memtouch.cc
index e160e6a3dfade72213c1297bb67b50808cc30366..dbb9ad5ceeb0e79c30a1fe0b320c40979a10c960 100644
(file)
--- a/
src/bin/memtouch.cc
+++ b/
src/bin/memtouch.cc
@@
-200,7
+200,7
@@
void options_parse(int argc, char *argv[]) {
case OPT_EXPIRE:
errno = 0;
expiration = time_t(strtoul(optarg, (char **) NULL, 10));
case OPT_EXPIRE:
errno = 0;
expiration = time_t(strtoul(optarg, (char **) NULL, 10));
- if (errno
!= 0
) {
+ if (errno) {
fprintf(stderr, "Invalid value for --expire: %s\n", optarg);
exit(EXIT_FAILURE);
}
fprintf(stderr, "Invalid value for --expire: %s\n", optarg);
exit(EXIT_FAILURE);
}