summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index d5de59fce9..f75a81c605 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -641,6 +641,9 @@ int read_full_file(const char *fn, char **contents, size_t *size) {
_cleanup_free_ char *buf = NULL;
struct stat st;
+ assert(fn);
+ assert(contents);
+
f = fopen(fn, "re");
if (!f)
return -errno;