diff options
author | Junkyeong Kim <jk0430.kim@samsung.com> | 2022-07-04 17:14:31 +0900 |
---|---|---|
committer | Junkyeong Kim <jk0430.kim@samsung.com> | 2022-07-04 17:46:53 +0900 |
commit | 7743977bbd690580cc460bea4d577c81193debf4 (patch) | |
tree | 86a3c7872b4e666b0d01e884e7d2cdc9c59a2efd | |
parent | 1d5027c84d984bfc032f3e35779ea5803f055e48 (diff) | |
download | e-mod-tizen-rdp-7743977bbd690580cc460bea4d577c81193debf4.tar.gz e-mod-tizen-rdp-7743977bbd690580cc460bea4d577c81193debf4.tar.bz2 e-mod-tizen-rdp-7743977bbd690580cc460bea4d577c81193debf4.zip |
Add null checking condition
Change-Id: I92a3020231b13d5ed6c1f8671b30058a374f8bc8
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r-- | src/e_mod_rdp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/e_mod_rdp.c b/src/e_mod_rdp.c index 5534307..163b871 100644 --- a/src/e_mod_rdp.c +++ b/src/e_mod_rdp.c @@ -2329,6 +2329,11 @@ e_rdp_output_create(void) EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL); output->primary_output = e_output_find_by_index(0); + if (output->primary_output == NULL) + { + E_FREE(output); + return NULL; + } EINA_LIST_FOREACH(output->primary_output->info.modes, l, emode) { |