GNOME Bugzilla – Bug 676397
g_environ_* should work with NULL envp
Last modified: 2012-05-22 17:49:40 UTC
IMHO it would be convenient to treat NULL envp the same as an empty envp in g_environ_[un]setenv(), so you wouldn't have extra checks in your code for NULL/non-NULL env.
Created attachment 214464 [details] [review] environ: Allow NULL envp
Review of attachment 214464 [details] [review]: ::: glib/genviron.c @@ +75,3 @@ * list (eg, as returned from g_get_environ()) * @variable: the environment variable to get, in the GLib file name * encoding Should probably document how NULL is interpreted here.
Created attachment 214481 [details] [review] environ: Allow NULL envp
Review of attachment 214481 [details] [review]: Looks good to me.
Pushed to master.