Changeset 10171


Ignore:
Timestamp:
Jul 21, 2008, 5:04:39 AM (11 years ago)
Author:
gb
Message:

in foreign_symbol_name_and_offset(), check for NULL 'delta' pointer.
(Caller currently always passes a non-NULL pointer, but it doesn't
hurt to check here.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisp-debug.c

    r10100 r10171  
    8181  if (dladdr((void *)addr, &info)) {
    8282    ret = (char *)info.dli_sname;
    83     *delta = ((natural)addr - (natural)info.dli_saddr);
     83    if (delta) {
     84      *delta = ((natural)addr - (natural)info.dli_saddr);
     85    }
    8486  }
    8587#endif
Note: See TracChangeset for help on using the changeset viewer.