summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 7ef4ae8..84892b0 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -121,7 +121,7 @@ get_inode(fd,super,ino)
if (ipbuf) {
free(ipbuf);
ipbuf = 0;
- if (super->fs_magic == FS_UFS2_MAGIC) {
+ if (super != NULL && super->fs_magic == FS_UFS2_MAGIC) {
free(cgp);
cgp = 0;
}
OpenPOWER on IntegriCloud