X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Funixsock.c;h=1840e34c45a157825fd8a9b8052a1b56500480ca;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=795f7abe2120f7e4d4930895f9c1af014a7addeb;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index 795f7abe..1840e34c 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -368,7 +368,7 @@ static void *us_server_thread (void __attribute__((unused)) *arg) pthread_exit ((void *) 1); } - remote_fd = (int *) malloc (sizeof (int)); + remote_fd = malloc (sizeof (*remote_fd)); if (remote_fd == NULL) { char errbuf[1024];