Eo: Also fix the case when the chain is not allocated.
authorTom Hacohen <tom@stosb.com>
Tue, 31 Jul 2012 07:34:27 +0000 (07:34 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 31 Jul 2012 07:34:27 +0000 (07:34 +0000)
Continuation to previous commit.

SVN revision: 74619

legacy/eobj/src/lib/eo.c

index 5e95291..d2e8f32 100644 (file)
@@ -288,7 +288,7 @@ _eo_kls_itr_next(const Eo_Class *orig_kls, Eo_Kls_Itr *cur, Eo_Kls_Itr *prev_sta
         while (*kls_itr)
           {
              const op_type_funcs *fsrc = _dich_func_get(*kls_itr, op);
-             if (!fsrc->func)
+             if (!fsrc || !fsrc->func)
                {
                   kls_itr++;
                   continue;