summaryrefslogtreecommitdiff
path: root/src/mhd/mhd_legal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 11:46:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 11:46:44 +0100
commitbe0a52f23cb22b15f93b1903a25a609e4c02745b (patch)
tree73a4e4c17bda3ba64d486b4b0bce3a59305f72ac /src/mhd/mhd_legal.c
parent92080dc8a481446737afe953cbd1c4f31c1bcb43 (diff)
downloadexchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.tar.gz
exchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.tar.bz2
exchange-be0a52f23cb22b15f93b1903a25a609e4c02745b.zip
fix crash
Diffstat (limited to 'src/mhd/mhd_legal.c')
-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))