Prevent using uninitialized byte. But it has always worked properly anyway. :-)
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 27 Jan 2011 17:12:02 +0000 (17:12 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 27 Jan 2011 17:12:02 +0000 (17:12 +0000)
org.glite.lb.logger/src/logd_proto.c

index 9ef2793..24561ce 100644 (file)
@@ -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) {