summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1998-06-29 23:31:06 +0000
committerThomas Bushnell <thomas@gnu.org>1998-06-29 23:31:06 +0000
commit9755910e9b8c9dcf7b87cc62d00a884aac65a3d3 (patch)
tree513a473b7e8213127583f4a27030b5a22a430846 /libdiskfs
parentf66818fe3a2c568faa9afe6d72339a57b1d0d621 (diff)
typo
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/lookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c
index 71d8dbf8..bc61f4ba 100644
--- a/libdiskfs/lookup.c
+++ b/libdiskfs/lookup.c
@@ -95,7 +95,8 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type,
if (name[0] == '\0')
{
- diskfs_null_dirstat (ds);
+ if (ds)
+ diskfs_null_dirstat (ds);
return EINVAL;
}