Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163385412
D44083.id135005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
373 B
Referenced Files
None
Subscribers
None
D44083.id135005.diff
View Options
diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c
--- a/stand/libsa/zfs/zfs.c
+++ b/stand/libsa/zfs/zfs.c
@@ -1264,8 +1264,12 @@
rv = zfs_set_bootenv(vdev, spa->spa_bootenv);
}
- if (unset_env)
- env_discard(env_getenv(name));
+ if (unset_env) {
+ struct env_var *ev = env_getenv(name);
+
+ if (ev != NULL)
+ env_discard(ev);
+ }
return (rv);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 5:52 PM (15 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35410282
Default Alt Text
D44083.id135005.diff (373 B)
Attached To
Mode
D44083: loader: we can only env_discard() existing variable
Attached
Detach File
Event Timeline
Log In to Comment