* Fix null pointer issue related to r_syscall and r_core

This commit is contained in:
pancake 2010-10-14 17:06:09 +02:00
parent bfbd12ed3c
commit 93e69bab0e

View File

@ -1678,6 +1678,10 @@ static void cmd_syscall_do(RCore *core, int num) {
int i;
char str[64];
RSyscallItem *item = r_syscall_get (core->syscall, num, -1);
if (item == NULL) {
r_cons_printf ("%d = unknown ()", num);
return;
}
r_cons_printf ("%d = %s (", item->num, item->name);
// TODO: move this to r_syscall
for (i=0; i<item->args; i++) {