projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow "edittrust" to accept 0 as a maximum count, and document it.
[srvx.git]
/
src
/
opserv.c
diff --git
a/src/opserv.c
b/src/opserv.c
index 43cbb73adbeb604e410df0de26137698ffeb0b15..25a48daa0966f67558db0ca70fc0f30a1920c24e 100644
(file)
--- a/
src/opserv.c
+++ b/
src/opserv.c
@@
-2264,7
+2264,7
@@
static MODCMD_FUNC(cmd_edittrust)
return 0;
}
count = strtoul(argv[2], &tmp, 10);
- if (
!count || *tmp
) {
+ if (
*tmp != '\0'
) {
reply("OSMSG_BAD_NUMBER", argv[2]);
return 0;
}