From: František Dvořák Date: Thu, 27 Jan 2011 17:12:02 +0000 (+0000) Subject: Prevent using uninitialized byte. But it has always worked properly anyway. :-) X-Git-Tag: glite-lbjp-common-db_R_2_0_5_3~7 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ae456ae4b6b628605cc65d584b1c708919c45706;p=jra1mw.git Prevent using uninitialized byte. But it has always worked properly anyway. :-) --- 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) {