From: Ben Pfaff Date: Thu, 26 Jan 2012 04:52:10 +0000 (-0800) Subject: perl-module: Add "!= NULL" to assignment used as condition. X-Git-Tag: v0.7.9~16 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=f44411bc0acedfdf5832c0e686057f62fb9be32a perl-module: Add "!= NULL" to assignment used as condition. Suppresses a "clang" warning. Reported-by: Jeremy Lavergne --- diff --git a/perl-module/PSPP.xs b/perl-module/PSPP.xs index 77b7682b..d2b2c58c 100644 --- a/perl-module/PSPP.xs +++ b/perl-module/PSPP.xs @@ -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;