X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=4d4a859b08cf0e13dddea8aa724f94099a0518b1;hp=133f5d3baef49a0d600c4fd0f03ac2b20692631b;hb=fb4022dfafa1d6f86f741767ecaed8e41c53352a;hpb=2d2ef9c2bf6e195d6e853b5234e79555974c242b diff --git a/fd.c b/fd.c index 133f5d3b..4d4a859b 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2012 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -526,6 +526,7 @@ static int para_opendir(const char *dirname, DIR **dir, int *cwd) { int ret; + *dir = NULL; if (cwd) { ret = para_open(".", O_RDONLY, 0); if (ret < 0)