diff options
author | Xavier Simonart <simonartxavier@gmail.com> | 2022-01-02 16:29:15 +0000 |
---|---|---|
committer | Xavier Simonart <simonartxavier@gmail.com> | 2022-01-02 16:33:49 +0000 |
commit | ba5ffcd0031bdf1f4781d9dcf224b5cb75aee922 (patch) | |
tree | 0f994ff11b2d08a1e0d03dabf6615b70d1b9d6c2 /VNFs | |
parent | 00f5630bf8a9a625a6ff4b35169a2f1f6ff23703 (diff) |
Fix potential crash when executing in background
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com>
Change-Id: I460e269926726aaaf495e751d8753cf8ab94877d
Diffstat (limited to 'VNFs')
-rw-r--r-- | VNFs/DPPD-PROX/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/main.c b/VNFs/DPPD-PROX/main.c index 5d01845e..1a4b92b0 100644 --- a/VNFs/DPPD-PROX/main.c +++ b/VNFs/DPPD-PROX/main.c @@ -1192,7 +1192,7 @@ static void set_term_env(void) plog_info("\tncurses version = %d.%d (%s)\n", max_ver, min_ver, ncurses_version); } - if (((max_ver > 6) || ((max_ver == 6) && (min_ver >= 1))) && (strcmp(old_value, "xterm") == 0)) { + if ((old_value) && ((max_ver > 6) || ((max_ver == 6) && (min_ver >= 1))) && (strcmp(old_value, "xterm") == 0)) { // On recent OSes such as RHEL 8.0, ncurses(6.1) introduced support // for ECMA-48 repeat character control. // Some terminal emulators use TERM=xterm but do not support this feature. |