Skip to content

Commit e22c58d

Browse files
committed
quick and dirty fix for macos
1 parent 60642af commit e22c58d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qiling/os/posix/posix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def load_syscall(self):
182182
posix_syscalls = ql_get_module_function(f"qiling.os.posix", "syscall")
183183

184184
# look in os-specific and posix syscall hooks
185-
syscall_hook = getattr(os_syscalls, syscall_name, None) or getattr(posix_syscalls, syscall_name, None)
185+
if syscall_name:
186+
syscall_hook = getattr(os_syscalls, syscall_name, None) or getattr(posix_syscalls, syscall_name, None)
186187

187188
if syscall_hook:
188189
syscall_name = syscall_hook.__name__

0 commit comments

Comments
 (0)