]> granicus.if.org Git - nethack/commitdiff
mingw follow-up
authornhmall <nhmall@nethack.org>
Tue, 31 Jan 2023 06:13:03 +0000 (01:13 -0500)
committernhmall <nhmall@nethack.org>
Tue, 31 Jan 2023 06:13:03 +0000 (01:13 -0500)
sound/windsound/windsound.c

index 576a38007e37c23df97e92d819590c8f8b1b3c6b..580e21235b829f0f2c3b1330fbbe548f8caca9f6 100644 (file)
@@ -70,10 +70,10 @@ windsound_soundeffect(char *desc, int32_t seid, int32_t volume)
         char *mingw_exedir;
 
        if (!sounddir) {
-           exedir = mingw_exepath();
-            if (exedir)
-                if (strlen(exedir) < sizeof buf - 30) {
-                    Strcpy(buf, exedir);
+           mingw_exedir = mingw_exepath();
+            if (mingw_exedir)
+                if (strlen(mingw_exedir) < sizeof buf - 30) {
+                    Strcpy(buf, mingw_exedir);
                     sefnflag = 2; /* 2 = use the directory name already in buf */
                 }
         }