* Remove unnecessary memsets in sframe-dump.c
@ 2023-03-21 23:10 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-03-21 23:10 UTC (permalink / raw)
To: binutils
* sframe-dump.c (dump_sframe_func_with_fres): Don't memset temp.
diff --git a/libsframe/sframe-dump.c b/libsframe/sframe-dump.c
index 5417a16f48c..77aa87d67a1 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
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-21 23:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 23:10 Remove unnecessary memsets in sframe-dump.c Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).