PR 26478
* mmo.c (mmo_write_symbols_and_terminator): Don't memcpy empty table.
+2020-08-26 Alan Modra <amodra@gmail.com>
+
+ PR 26478
+ * mmo.c (mmo_write_symbols_and_terminator): Don't memcpy empty table.
+
2020-08-26 Alan Modra <amodra@gmail.com>
PR 26475
if (table == NULL)
return FALSE;
- memcpy (table, orig_table, count * sizeof (asymbol *));
+ if (count != 0)
+ memcpy (table, orig_table, count * sizeof (asymbol *));
/* Move :Main (if there is one) to the first position. This is
necessary to get the same layout of the trie-tree when linking as