add comment detailing why there is no error handling

This commit is contained in:
slonkazoid 2024-09-08 18:28:53 +03:00
parent d211b7d4a9
commit 2e56296ccc
No known key found for this signature in database

View File

@ -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);