projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b01745f
)
Fix handling of NULL calls to FindObjectByName
author
charles
<charles>
Mon, 1 Aug 2005 04:53:01 +0000
(
04:53
+0000)
committer
charles
<charles>
Mon, 1 Aug 2005 04:53:01 +0000
(
04:53
+0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index c2b6017c41ff4768605d571460ccedb6ee0707db..d289c294c2d463d8396663c06205cc309cee0ca3 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-13,7
+13,7
@@
*/
//yaffs_guts.c
-const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.1
2 2005-07-31 06:54:19
charles Exp $";
+const char *yaffs_guts_c_version="$Id: yaffs_guts.c,v 1.1
3 2005-08-01 04:53:01
charles Exp $";
#include "yportenv.h"
@@
-5587,6
+5587,10
@@
yaffs_Object *yaffs_FindObjectByName(yaffs_Object *directory,const YCHAR *name)
yaffs_Object *l;
+ if(!name)
+ {
+ return NULL;
+ }
if(!directory)
{