diff options
author | cao <cao.xuewen@zte.com.cn> | 2016-10-24 20:37:38 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2016-10-24 20:37:38 +0000 |
commit | aed0e9f3e4db75f4b622e1f0623fe61a94a43dc2 (patch) | |
tree | 6b1fd020e9d46cc6847ff328490bb3e7a4fac493 /cmd/zdb/zdb.c | |
parent | 13d9a004fe533df8613888687650b1b0e272b67d (diff) | |
download | src-aed0e9f3e4db75f4b622e1f0623fe61a94a43dc2.tar.gz src-aed0e9f3e4db75f4b622e1f0623fe61a94a43dc2.zip |
Diffstat (limited to 'cmd/zdb/zdb.c')
-rw-r--r-- | cmd/zdb/zdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index 7a0f55f75e9b..b9b0b29bca61 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -3290,7 +3290,7 @@ zdb_vdev_lookup(vdev_t *vdev, char *path) return (NULL); vdev = vdev->vdev_child[i]; - if (*s == '\0') + if (s && *s == '\0') return (vdev); return (zdb_vdev_lookup(vdev, s+1)); |