Fix for a coverity warning
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 May 2011 17:28:14 +0000 (17:28 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 May 2011 17:28:14 +0000 (17:28 +0000)
ITS/AliITSInitGeometry.cxx

index 2572ea5..9a5095b 100644 (file)
@@ -1092,6 +1092,9 @@ Bool_t AliITSInitGeometry::ReadVersionString(const Char_t *str,Int_t length,
     Bool_t ok;
     Char_t cvsRevision[10],cvsDate[11],cvsTime[9];
     Int_t i,m,n=strlen(str),year,month,day,hours,minuits,seconds;
+    memset(cvsRevision,0,10*sizeof(Char_t));
+    memset(cvsDate,0,11*sizeof(Char_t));    
+    memset(cvsTime,0,9*sizeof(Char_t));
 
     if(GetDebug()>1)printf("AliITSInitGeometry::ReadVersionString:"
                        "str=%s length=%d\n",