diff options
author | jdike <jdike> | 2003-09-08 16:28:35 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-09-08 16:28:35 +0000 |
commit | cb4648f86190e576d61f1e93fb829063395cd3ef (patch) | |
tree | f07e798e5f028e85b71e2ed1e3a912a8c46c8d6b | |
parent | 145e7b08acf1a73483bc3e8fe0315833954765af (diff) | |
download | uml-history-cb4648f86190e576d61f1e93fb829063395cd3ef.tar.gz |
Fixed a crash resulting from the jailing fix in the last patch.
-rw-r--r-- | arch/um/fs/hostfs/hostfs_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/fs/hostfs/hostfs_kern.c b/arch/um/fs/hostfs/hostfs_kern.c index bb6668b..c5cf93e 100644 --- a/arch/um/fs/hostfs/hostfs_kern.c +++ b/arch/um/fs/hostfs/hostfs_kern.c @@ -874,7 +874,7 @@ static char *get_root(char *mount_arg) len += strlen(slash); } - if(mount_arg == NULL) + if((mount_arg == NULL) || (*mount_arg == '\0')) mount_arg = DEFAULT_ROOT; len += strlen(mount_arg) + 1; |