summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r--tapset/aux_syscalls.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index 6d6fa311..08018ad2 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1533,6 +1533,10 @@ void _stp_lookup_str(const _stp_val_array * const array, long val, char *ptr, in
void _stp_lookup_or_str(const _stp_val_array * const array, long val, char *ptr, int len)
{
int i = 0, flag = 0;
+ if (val == 0) {
+ _stp_lookup_str(array, val, ptr, len);
+ return;
+ }
while (array[i].name) {
if (array[i].val & val) {
if (flag)