We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45af271 commit d3fe24dCopy full SHA for d3fe24d
1 file changed
termux-api.c
@@ -85,7 +85,7 @@ _Noreturn void exec_callback(int fd)
85
86
char errmsg[256];
87
char *export_to_env = getenv("TERMUX_EXPORT_FD");
88
- if (strncmp(export_to_env, "true", 4) == 0) {
+ if (export_to_env && strncmp(export_to_env, "true", 4) == 0) {
89
if (setenv("TERMUX_USB_FD", fds, true) == -1)
90
perror("setenv");
91
execl(callback_fun, callback_fun, NULL);
0 commit comments