From 352c9397370312f080e687e319d751d6bce94b16 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Sun, 13 Jun 1999 08:32:27 +0000
Subject: [PATCH] Fixed small memory corruption.

---
 multimedia/mci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multimedia/mci.c b/multimedia/mci.c
index daf4367b52a..0666b4cf55e 100644
--- a/multimedia/mci.c
+++ b/multimedia/mci.c
@@ -1161,7 +1161,8 @@ DWORD MCI_Open(DWORD dwParam, LPMCI_OPEN_PARMSA lpParms)
 	/* FIXME is there any memory leak here ? */
 	MCI_GetOpenDrv(wDevID)->lpstrAlias = strdup(lpParms->lpstrAlias);
 	/* mplayer does allocate alias to CDAUDIO */
-    }
+    } else 
+	MCI_GetOpenDrv(wDevID)->lpstrAlias = NULL;
     if (dwParam & MCI_OPEN_TYPE) {
 	if (dwParam & MCI_OPEN_TYPE_ID) {
 #if 0
-- 
GitLab