aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--common/util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/util.c b/common/util.c
index 3164126..f0a1df4 100644
--- a/common/util.c
+++ b/common/util.c
@@ -68,14 +68,16 @@ const char *syscall_name(long nr) {
if (!call->name) {
set++;
call = set[0];
- continue;
+
+ if (!*set)
+ return "unknown";
}
if (nr == call->number)
break;
}
- return call ? call->name : "unknown";
+ return call->name;
}
const char *syscall_name_str[N_SYSCALL + 1] = {