- remove linker problems by using non-initialized arrays
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@125 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
857ea8d28b
commit
77aaeb77b8
1 changed files with 3 additions and 2 deletions
5
fs/fs.c
5
fs/fs.c
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include <metalsvm/stdio.h>
|
||||
#include <metalsvm/string.h>
|
||||
#include <metalsvm/fs.h>
|
||||
#include <metalsvm/errno.h>
|
||||
|
||||
|
@ -138,14 +139,14 @@ vfs_node_t* findnode_fs(const char* name)
|
|||
{
|
||||
uint32_t i, j = 1;
|
||||
vfs_node_t* ret = NULL;
|
||||
char fname[MAX_FNAME] = {[0 ... MAX_FNAME-1] = 0};
|
||||
char fname[MAX_FNAME];
|
||||
|
||||
if (BUILTIN_EXPECT(!name, 0))
|
||||
return ret;
|
||||
|
||||
if (name[0] == '/')
|
||||
ret = fs_root;
|
||||
|
||||
|
||||
while((name[j] != '\0') && ret) {
|
||||
i = 0;
|
||||
while((name[j] != '/') && (name[j] != '\0')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue