Commit c06c1b2b authored by R.K.Garcia's avatar R.K.Garcia
Browse files

fix invalid pointer comparison in attach

parent df6f1d2a
......@@ -16,12 +16,12 @@ aHimawariFile *aHimawariFile::attach(const char *pathname, const struct Himawari
aHimawariFile *ret=NULL;
ret = attachHCast(pathname, optional_sentinels);
if (ret>0)
if (ret != 0)
return ret;
// for now, just attempt til we succeed
ret = attachHSD(pathname, optional_sentinels);
if (ret>0)
if (ret != 0)
return ret;
// add other file types here
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment