mirror of
https://github.com/tmate-io/tmate.git
synced 2025-06-25 03:51:24 +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);
|
free(buf);
|
||||||
if (envent == NULL)
|
if (envent == NULL)
|
||||||
return (xstrdup(""));
|
return (xstrdup(""));
|
||||||
|
#ifdef TMATE
|
||||||
|
if (envent->value == NULL)
|
||||||
|
return (xstrdup(""));
|
||||||
|
#endif
|
||||||
return (xstrdup(envent->value));
|
return (xstrdup(envent->value));
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user