alsa: Remove pointless initialization.
[paraslash.git] / ipc.c
diff --git a/ipc.c b/ipc.c
index 40f6a9512287e2689c140f0e5d31017dff5cea83..89bbe53564e3c678e97b453e38b7c70be8063314 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -209,6 +209,7 @@ size_t shm_get_shmmax(void)
                                buf[ret] = '\0';
                                shmmax = strtoul(buf, NULL, 10);
                        }
+                       close(fd);
                }
        }
 #elif defined SYSCTL_SHMMAX_VARIABLE
@@ -221,7 +222,7 @@ size_t shm_get_shmmax(void)
 #endif
        if (shmmax == 0) {
                PARA_WARNING_LOG("unable to determine shmmax\n");
-               shmmax = 65535; /* last ressort */
+               shmmax = 65535; /* last resort */
        }
        PARA_INFO_LOG("shmmax: %zu\n", shmmax);
        return shmmax;