Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/src
Modified Files:
etox.c
Log Message:
Avoid potential segv
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -3 -r1.100 -r1.101
--- etox.c 30 Oct 2004 04:42:23 -0000 1.100
+++ etox.c 2 Nov 2004 16:19:57 -0000 1.101
@@ -1004,10 +1004,12 @@
sum = et->length;
line = evas_list_data(evas_list_last(et->lines));
- if (h) *h = line->h;
- if (w) *w = line->w / (line->length ? line->length : 1);
- if (y) *y = line->y;
- if (x) *x = line->x + line->w;
+ if (line) {
+ if (h) *h = line->h;
+ if (w) *w = line->w / (line->length ? line->length : 1);
+ if (y) *y = line->y;
+ if (x) *x = line->x + line->w;
+ }
}
else {
Evas_List *l;
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs