libcue
libcue copied to clipboard
Replace two calloc() calls by malloc() calls?
:eyes: I find the following statements suspicious because the initialisation with zeros is not needed for the mentioned memory areas.
new_cdtext = (Cdtext *) calloc (sizeof (cdtext) / sizeof (Cdtext), sizeof (Cdtext));new_rem = (Rem*)calloc(sizeof(rem) / sizeof(Rem), sizeof(Rem));
How do you think about to use the function “malloc” at these source code places? :thinking: