summaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
Diffstat (limited to 'src/mhd')
-rw-r--r--src/mhd/mhd_legal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index e0fb0b29..fac97412 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -484,6 +484,8 @@ load_language (struct TALER_MHD_Legal *legal,
path,
lang);
d = opendir (dname);
+ if (NULL == d)
+ return;
for (struct dirent *de = readdir (d);
NULL != de;
de = readdir (d))