openbsd-ports/x11/xfe/patches/patch-src_File_cc
ajacoutot d259b87054 - add a patch to fix a null pointer dereference when deleting files
- remove some whitespaces in Makefile

from Tobias Ulmer <tobiasu at tmux dot org>
2008-01-03 12:05:24 +00:00

16 lines
315 B
Plaintext

$OpenBSD: patch-src_File_cc,v 1.1 2008/01/03 12:05:24 ajacoutot Exp $
--- src/File.cc.orig Wed Jan 2 17:20:09 2008
+++ src/File.cc Wed Jan 2 17:20:44 2008
@@ -491,7 +491,10 @@ FXint isEmptyDir(const FXString directory)
else
ret=0;
}
- closedir(dir);
+
+ if (dir)
+ closedir(dir);
+
return ret;
}