mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-06-26 03:11:44 +02:00
Fix another compiler warning.
This commit is contained in:
parent
491d576529
commit
570c09a2af
|
@ -120,7 +120,7 @@ sighandler (int signal)
|
||||||
name[0] = '\0';
|
name[0] = '\0';
|
||||||
off[0] = '\0';
|
off[0] = '\0';
|
||||||
if (unw_get_proc_name (&cursor, name, sizeof (name), &offset) == 0
|
if (unw_get_proc_name (&cursor, name, sizeof (name), &offset) == 0
|
||||||
&& off > 0)
|
&& offset > 0)
|
||||||
snprintf (off, sizeof (off), "+0x%lx", (long) offset);
|
snprintf (off, sizeof (off), "+0x%lx", (long) offset);
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf ("ip = %lx <%s%s>\n", (long) ip, name, off);
|
printf ("ip = %lx <%s%s>\n", (long) ip, name, off);
|
||||||
|
|
Loading…
Reference in a new issue