shithub: orca

Download patch

ref: 3dc1fd28f9bc25ee0fd5535ae496572e34859a9f
parent: 9ab38bdd036071b542e02843a895ab9196f38c65
author: cancel <cancel@cancel.fm>
date: Wed Jan 15 15:01:55 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -2359,7 +2359,7 @@
   bool has_softmargins : 1;
 } Prefs;
 
-void prefs_init(Prefs *p) { memset(p, 0, sizeof(Prefs)); }
+void prefs_init(Prefs *p) { *p = (Prefs){0}; }
 void prefs_deinit(Prefs *p) { osofree(p->portmidi_output_device); }
 
 typedef enum {