e_actions: check if the list pointer is null. 83/238783/2
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 17 Jul 2020 08:08:09 +0000 (17:08 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 17 Jul 2020 08:41:50 +0000 (17:41 +0900)
Change-Id: Ia80682c7e1a23cf3ea50466cedaa5f1942243852

src/bin/e_actions.c

index 7e399fa6b11da32df63ebf44efec68c455ee19e3..cd54463b6eb3598b95cae01a98d888d072fb61f7 100644 (file)
@@ -1171,6 +1171,9 @@ window_jump_to(const char *params)
     * If not, there is only one window, so let's use it */
    if (eina_list_next(l))
      l = l->next;
+
+   if (!l) return 0;
+
    EINA_LIST_FOREACH(l, ll, ec)
      {
         if (!ec->icccm.name) continue;