From ae456ae4b6b628605cc65d584b1c708919c45706 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 27 Jan 2011 17:12:02 +0000 Subject: [PATCH] Prevent using uninitialized byte. But it has always worked properly anyway. :-) --- org.glite.lb.logger/src/logd_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.lb.logger/src/logd_proto.c b/org.glite.lb.logger/src/logd_proto.c index 9ef2793..24561ce 100644 --- a/org.glite.lb.logger/src/logd_proto.c +++ b/org.glite.lb.logger/src/logd_proto.c @@ -492,7 +492,7 @@ int edg_wll_log_proto_server(edg_wll_GssConnection *con, struct timeval *timeout // glite_common_log(LOG_CATEGORY_ACCESS,LOG_PRIORITY_TRACE,"Read message: \"%s\"\n",msg); } - if (buf[count] != '\0') buf[count] = '\0'; + buf[count] = '\0'; /* parse message and get jobId and priority from it */ if (!noparse && strstr(msg, "DG.TYPE=\"command\"") == NULL) { -- 1.8.2.3