perl-module: Add "!= NULL" to assignment used as condition.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Jan 2012 04:52:10 +0000 (20:52 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 26 Jan 2012 05:08:37 +0000 (21:08 -0800)
Suppresses a "clang" warning.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
perl-module/PSPP.xs

index 77b7682b3e29c96178034a60797887c78c2dd208..d2b2c58c4c91396ca158d4840e796e468c9635d1 100644 (file)
@@ -749,7 +749,7 @@ get_next_case (sfr)
 PPCODE:
  struct ccase *c;
 
- if (c = casereader_read (sfr->reader))
+ if ((c = casereader_read (sfr->reader)) != NULL)
  {
   int v;