mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
add comment detailing why there is no error handling
This commit is contained in:
parent
d211b7d4a9
commit
2e56296ccc
@ -11,6 +11,8 @@ struct cmd_results *cmd_env(int argc, char **argv) {
|
||||
return error;
|
||||
}
|
||||
|
||||
// g_environ_setenv never returns NULL
|
||||
// https://github.com/GNOME/glib/blob/8810cf7a/glib/genviron.c#L129
|
||||
child_envp = g_environ_setenv(child_envp, argv[0], argv[1], 1);
|
||||
|
||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user