aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/initramfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/initramfs.c')
-rw-r--r--sys/fs/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c
index c0eaa0c..dad3763 100644
--- a/sys/fs/initramfs.c
+++ b/sys/fs/initramfs.c
@@ -221,7 +221,7 @@ initramfs_open(const char *path)
}
hdr = initramfs_from_path((void *)initramfs, path);
- return hdr_to_contents(hdr);
+ return (hdr == NULL) ? NULL : hdr_to_contents(hdr);
}
struct vfsops g_initramfs_ops = {