summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-02-18 18:52:13 +0000
committerShawn O. Pearce <spearce@spearce.org>2009-03-17 18:59:26 -0700
commita9984a4e60291958a7cf0045758f47db3d214040 (patch)
tree42608eb49e4be32002462b51e86065368b342c05 /src/fileops.c
parentfc3c3a2083e9f6f89e6bd53e9420e70d1e357c9b (diff)
downloadlibgit2-a9984a4e60291958a7cf0045758f47db3d214040.tar.gz
Fix some (digital-mars) compiler warnings
In particular, conditional expressions which contain an assignment statement, where the expression type is not explicitly made to be boolean, elicits the following message: warning 2: possible unintended assignment Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 8cc293419..1f8435d47 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -232,7 +232,7 @@ int gitfo_dirent(
if (!dir)
return git_os_error();
- while ((de = readdir(dir))) {
+ while ((de = readdir(dir)) != NULL) {
size_t de_len;
int result;