]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Fix initialization bug
authorJaroslav Kysela <perex@perex.cz>
Sat, 21 Feb 2004 21:13:23 +0000 (21:13 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sat, 21 Feb 2004 21:13:23 +0000 (21:13 +0000)
oss-redir/oss-redir.c

index 8b4888da803573c4c3dde35929eb47702d71a874..82b9f5915a03378d9ba545685a2ac49b2a52f46a 100644 (file)
@@ -217,8 +217,10 @@ static void initialize(void)
        if (s) {
                strncpy(hal, s, sizeof(hal));
                hal[sizeof(hal)-1] = '\0';
-               if (!strcmp(hal, "oss"))
+               if (!strcasecmp(hal, "oss"))
                        native_oss = 1;
+               else
+                       native_oss = 0;
        } else {
                native_oss = 1;
        }