summaryrefslogtreecommitdiff
path: root/tools/rpcdebug/rpcdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rpcdebug/rpcdebug.c')
-rw-r--r--tools/rpcdebug/rpcdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rpcdebug/rpcdebug.c b/tools/rpcdebug/rpcdebug.c
index 68206cc..ec05179 100644
--- a/tools/rpcdebug/rpcdebug.c
+++ b/tools/rpcdebug/rpcdebug.c
@@ -257,7 +257,7 @@ get_flags(char *module)
perror(filename);
exit(1);
}
- if ((len = read(sysfd, buffer, sizeof(buffer))) < 0) {
+ if ((len = read(sysfd, buffer, sizeof(buffer))) <= 0) {
perror("read");
exit(1);
}