#include "typedefs.h"
#include "smalloc.h"
#include "sysstuff.h"
-#include "errno.h"
+#include <errno.h>
#include "macros.h"
#include "string2.h"
#include "confio.h"
{
t_atoms *atoms;
gmx_bool bEnd;
- int nwanted,natoms,atnr,resnr,oldres,newres,shift;
+ int nwanted,natoms,atnr,resnr=0,oldres,newres,shift;
char anm[STRLEN],resnm[STRLEN];
char c1,c2;
double db1,db2,db3;
"Found more coordinates (%d) in %s than expected %d\n",
natoms,infile,nwanted);
if (atoms) {
- if (atoms && fr->bAtoms &&
+ if (fr->bAtoms &&
(sscanf(line,"%5d%c%5s%c%5s%7d",&resnr,&c1,resnm,&c2,anm,&atnr)
!= 6)) {
if (oldres>=0)
t_symtab symtab;
char title[STRLEN],*p;
double tt;
- int ndec,i;
+ int ndec=0,i;
if (gmx_eof(status))
return FALSE;