]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Feb 2011 15:22:51 +0000 (15:22 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Feb 2011 15:22:51 +0000 (15:22 +0000)
RAW/dateStream.cxx

index c8fbae5bae1edc36ce03f15a32ad8b7ea73d2f4a..2dbd84f9e3dc75e607a074518c318da197cacd69 100644 (file)
@@ -826,7 +826,8 @@ void parseLdc( char * const line ) {
                 lineNmb );
        exit( 1 );
       }
-      if ( sscanf( idNum, "%d", (int*)&currLdcId ) != 1 ) {
+      int inCurrLdcId;
+      if ( sscanf( idNum, "%d", &inCurrLdcId ) != 1 ) {
        fprintf( stderr,
                 "%s: line:%d LDC declaration, numeric ID needed (%s)",
                 myName,
@@ -834,6 +835,7 @@ void parseLdc( char * const line ) {
                 idNum );
        exit( 1 );
       }
+      currLdcId = (eventLdcIdType)inCurrLdcId;
       DBG_VERBOSE printf( "%d)     LDC - ID:%d\n",
                          lineNmb,
                          currLdcId );