fix false positive gcc 4.7 warning in libxdrf
authorSzilárd Páll <pszilard@cbr.su.se>
Thu, 25 Oct 2012 12:06:00 +0000 (14:06 +0200)
committerSzilárd Páll <pszilard@cbr.su.se>
Thu, 25 Oct 2012 12:06:00 +0000 (14:06 +0200)
Change-Id: Ied3b07dca011ca142455c328cba25b0b01eadb8c

src/gmxlib/libxdrf.c

index 354b821172d22188573f30e08637843787b0154e..9dfa56cda4c453f5863be15d6ceb1dbea680af14 100644 (file)
@@ -1687,7 +1687,7 @@ int xdr_xtc_seek_time(real time, FILE *fp, XDR *xdrs, int natoms,gmx_bool bSeekF
 {
     float t;
     float dt;
-    gmx_bool bOK;
+    gmx_bool bOK = FALSE;
     gmx_off_t low = 0;
     gmx_off_t high, offset, pos;
     int res;