Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/eet
Dir : e17/libs/eet/src/lib
Modified Files:
eet_lib.c
Log Message:
and chekc soem string pointers
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/eet/src/lib/eet_lib.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- eet_lib.c 13 Jan 2003 04:31:00 -0000 1.4
+++ eet_lib.c 13 Jan 2003 06:22:02 -0000 1.5
@@ -309,7 +309,8 @@
{
Eet_File *ef;
char buf[PATH_MAX];
-
+
+ if (!file) return NULL;
/* in case this is a symlink... find out where it REALLY points */
if (!realpath(file, buf))
{
@@ -632,7 +633,7 @@
int hash, i, num;
/* check to see its' an eet file pointer */
- if ((!ef) || (ef->magic != EET_MAGIC_FILE))
+ if ((!ef) || (ef->magic != EET_MAGIC_FILE) || (!name))
{
if (size_ret) *size_ret = 0;
return NULL;
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs