Make sure the data in the list is valid. (Ran into an odd segv here,
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 28 May 2010 16:20:31 +0000 (16:20 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Fri, 28 May 2010 16:20:31 +0000 (16:20 +0000)
so added this catch to trap it).

SVN revision: 49248

src/modules/syscon/e_syscon.c

index b7800a4..1d0aa17 100644 (file)
@@ -135,7 +135,7 @@ e_syscon_show(E_Zone *zone, const char *defact)
         E_Action *a;
         int disabled;
 
-        sca = l->data;
+        if (!(sca = l->data)) continue;
         if (!sca->action) continue;
         a = e_action_find(sca->action);
         if (!a) continue;