We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 895b0c3 commit 3154dfdCopy full SHA for 3154dfd
1 file changed
termux-api.c
@@ -79,7 +79,7 @@ _Noreturn void exec_callback(int fd)
79
80
char errmsg[256];
81
char *export_to_env = getenv("TERMUX_EXPORT_FD");
82
- if (strncmp(export_to_env, "true", 4) == 0) {
+ if (export_to_env && strncmp(export_to_env, "true", 4) == 0) {
83
if (setenv("TERMUX_USB_FD", fds, true) == -1)
84
perror("setenv");
85
execl(PREFIX "/libexec/termux-callback", "termux-callback", NULL);
0 commit comments