mirror of
https://github.com/tmate-io/tmate.git
synced 2025-06-24 19:41:22 +02:00
Attempt to fix environment related crash
This commit is contained in:
parent
b27f3bacc0
commit
022e211a7f
@ -307,6 +307,10 @@ cmd_string_variable(const char *s, size_t *p)
|
||||
free(buf);
|
||||
if (envent == NULL)
|
||||
return (xstrdup(""));
|
||||
#ifdef TMATE
|
||||
if (envent->value == NULL)
|
||||
return (xstrdup(""));
|
||||
#endif
|
||||
return (xstrdup(envent->value));
|
||||
|
||||
error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user