From a300adf15342aa4d3b030698d40d61edb6272ea0 Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期二, 07 九月 2021 11:51:20 +0800 Subject: [PATCH] resize the buf allocation as dynamic allocate. --- src/svsem.cpp | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/svsem.cpp b/src/svsem.cpp index 26bde2c..00e6dbc 100644 --- a/src/svsem.cpp +++ b/src/svsem.cpp @@ -11,7 +11,6 @@ union semun arg; struct sembuf sop; - arg.val = 0; /* So initialize it to 0 */ if (semctl(semid, 0, SETVAL, arg) == -1) err_exit(errno, "semctl 1"); -- Gitblit v1.8.0