Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/lib
Modified Files:
libevfs.c
Log Message:
* Fixed a segv for plugins that don't start with a '/'
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/libevfs.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- libevfs.c 2 Nov 2005 09:08:22 -0000 1.18
+++ libevfs.c 3 Nov 2005 04:05:30 -0000 1.19
@@ -365,8 +365,12 @@
token = evfs_token_expect(tokens, EVFS_URI_TOKEN_OPERATOR,
"/"); /* '/' */
}
- new_ref->path = malloc(strlen(token->token_s) + 1);
- strcpy(new_ref->path, token->token_s);
+ if (token) {
+ new_ref->path = malloc(strlen(token->token_s) + 1);
+ strcpy(new_ref->path, token->token_s);
+ } else {
+ new_ref->path = calloc(1,1);
+ }
/*Blindly get the rest of the tokens and append*/
while ((token = ecore_dlist_next(tokens))) {
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs