[VDPAU] [PATCH 3/4] test: remove assignment-as-truth-value warning
Rémi Denis-Courmont
remi at remlab.net
Tue Oct 28 08:20:08 PDT 2014
From: Rémi Denis-Courmont <remid at nvidia.com>
Signed-off-by: Rémi Denis-Courmont <remid at nvidia.com>
---
test/dlclose.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/dlclose.c b/test/dlclose.c
index e2295c9..1bd6fa5 100644
--- a/test/dlclose.c
+++ b/test/dlclose.c
@@ -21,7 +21,7 @@ static int countOpenFDs(void)
return 0;
}
- while (ent = readdir(dir)) {
+ while ((ent = readdir(dir)) != NULL) {
count++;
}
--
1.9.1
More information about the VDPAU
mailing list