Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_apps.c
Log Message:
Fix small seg
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_apps.c 23 Dec 2004 06:38:27 -0000 1.10
+++ e_apps.c 5 Jan 2005 16:05:49 -0000 1.11
@@ -286,6 +286,9 @@
{
E_App *a;
+ if (!name && !class)
+ return NULL;
+
a = l->data;
if ((a->win_name) || (a->win_class))
{
@@ -293,10 +296,10 @@
// printf("%s.%s == %s.%s\n", name, class, a->win_name, a->win_class);
if ((!a->win_name) ||
- ((a->win_name) && (!strcmp(a->win_name, name))))
+ ((a->win_name) && name && (!strcmp(a->win_name, name))))
ok++;
if ((!a->win_class) ||
- ((a->win_class) && (!strcmp(a->win_class, class))))
+ ((a->win_class) && class && (!strcmp(a->win_class, class))))
ok++;
if (ok >= 2)
{
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs