mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 12:16:22 +00:00
refactor: replace malloc with g_new0 in many occasions
This commit is contained in:
@@ -4891,7 +4891,7 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
|
||||
#endif
|
||||
}
|
||||
|
||||
HTTPUpload* upload = malloc(sizeof(HTTPUpload));
|
||||
HTTPUpload* upload = g_new0(HTTPUpload, 1);
|
||||
if (!upload) {
|
||||
cons_show_error("Memory allocation failed.");
|
||||
if (fh) {
|
||||
|
||||
Reference in New Issue
Block a user