Skip to content

Commit c1fe680

Browse files
committed
Happy Win
1 parent 72337cb commit c1fe680

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/cava.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ int should_quit = 0;
7171
// will allow us to not free them on exit without ASan complaining
7272
struct config_params p;
7373

74-
#ifdef _WIN32
75-
p.hFile = NULL;
76-
#endif
77-
7874
// general: handle signals
7975
#ifdef _WIN32
8076
int sig_handler(DWORD sig_no) {

src/config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ bool validate_config(struct config_params *p, struct error_s *error) {
502502

503503
bool load_config(char configPath[PATH_MAX], struct config_params *p, bool colorsOnly,
504504
struct error_s *error) {
505+
#ifdef _WIN32
506+
p.hFile = NULL;
507+
#endif
505508
FILE *fp;
506509
char *cava_config_home = malloc(PATH_MAX / 2);
507510

0 commit comments

Comments
 (0)