chiark / gitweb /
share/log: skip file/line/func info if empty
[elogind.git] / src / shared / util.c
index d5de59fce90955530cf0f2c121f46a41ca7caa41..f75a81c605aa5fa4f2641d1824cc8fe9f221eabb 100644 (file)
@@ -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;