ref: 2c7f81258fca15c2d4ac1f6700ffff7f34427cc4
parent: c9b3dcae8dfa5117e333b51a14240f2d67f6690e
author: Erik de Castro Lopo <erikd@coltrane>
date: Wed Sep 15 07:19:09 EDT 2004
Minor cleanup of sndfile-resample.c.
--- a/examples/sndfile-resample.c
+++ b/examples/sndfile-resample.c
@@ -96,7 +96,7 @@
exit (1) ;
} ;
- if (! (infile = sf_open (argv [argc - 2], SFM_READ, &sfinfo)))
+ if ((infile = sf_open (argv [argc - 2], SFM_READ, &sfinfo)) == NULL)
{ printf ("Error : Not able to open input file '%s'\n", argv [argc - 2]) ;
exit (1) ;
} ;