diff options
author | Alan Modra <amodra@gmail.com> | 2023-03-22 09:37:43 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-03-22 09:39:41 +1030 |
commit | 41738595c2bbe124d8968a0b3c2e379df00eb537 (patch) | |
tree | f4e18758e997330b245ea0c604b6a94412bb87cb /libsframe | |
parent | 4d5b27b30b06cbe3fb8103a323c35970925ccffd (diff) | |
download | fsf-binutils-gdb-41738595c2bbe124d8968a0b3c2e379df00eb537.zip fsf-binutils-gdb-41738595c2bbe124d8968a0b3c2e379df00eb537.tar.gz fsf-binutils-gdb-41738595c2bbe124d8968a0b3c2e379df00eb537.tar.bz2 |
Remove unnecessary memsets in sframe-dump.c
* sframe-dump.c (dump_sframe_func_with_fres): Don't memset temp.
Diffstat (limited to 'libsframe')
-rw-r--r-- | libsframe/sframe-dump.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libsframe/sframe-dump.c b/libsframe/sframe-dump.c index 5417a16..77aa87d 100644 --- a/libsframe/sframe-dump.c +++ b/libsframe/sframe-dump.c @@ -133,7 +133,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx, printf (", pauth = B key"); char temp[100]; - memset (temp, 0, 100); printf ("\n %-7s%-8s %-10s%-10s%-13s", "STARTPC", fde_type_marker, "CFA", "FP", "RA"); for (j = 0; j < num_fres; j++) @@ -158,7 +157,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx, printf (" %-10s", temp); /* Dump SP/FP info. */ - memset (temp, 0, 100); if (err[1] == 0) sprintf (temp, "c%+d", fp_offset); else @@ -166,7 +164,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx, printf ("%-10s", temp); /* Dump RA info. */ - memset (temp, 0, 100); if (err[2] == 0) sprintf (temp, "c%+d", ra_offset); else |