summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 728f962..2780447 100644
--- a/util.c
+++ b/util.c
@@ -443,6 +443,7 @@ FILE *xfopen(const char *path, int flags) {
break;
default:
assert(!"Invalid access mode");
+ errno = EINVAL;
return NULL;
}