X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ipc.c;h=c245f690788630e19f2c7e82bda903360e1c0fa5;hb=HEAD;hp=8e9dd51a2369e7e60ebd4bda3fa889eaed892248;hpb=e2ad488f4d30b6d9617702b8ce868ed7c55a4247;p=paraslash.git diff --git a/ipc.c b/ipc.c index 8e9dd51a..c245f690 100644 --- a/ipc.c +++ b/ipc.c @@ -218,7 +218,7 @@ size_t shm_get_shmmax(void) { int fd = open("/proc/sys/kernel/shmmax", O_RDONLY); if (fd >= 0) { - char buf[100] = ""; + char buf[100]; int ret = read(fd, buf, sizeof(buf) - 1); if (ret > 0) { buf[ret] = '\0';