vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit afe9c1be3a405ae06f8aa1f0d7967cdf8abdd059
parent 9a2b020a5090f8a6adcd2a6adaca4f45e6e16c45
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date:   Sun, 12 Sep 2010 03:54:46 +0200

small fixes

Diffstat:
Msrc/9vx/main.c | 2+-
Msrc/9vx/stub.c | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/9vx/main.c b/src/9vx/main.c @@ -196,7 +196,7 @@ main(int argc, char **argv) * bootargs have preference over -r * if localroot is -, keep it for printconfig */ - if(bootargc > 0 && strcmp(localroot, "-") != 0) + if(bootargc > 0 && localroot && strcmp(localroot, "-") != 0) localroot = nil; inifields(&iniopt); diff --git a/src/9vx/stub.c b/src/9vx/stub.c @@ -433,7 +433,8 @@ rebootcmd(int argc, char **argv) restoretty(); for(i = 0; i < argc; i++) iprint("%s%s", argv[i], argc - i > 1 ? " " : ""); - iprint("\n"); + if(argc > 0) + iprint("\n"); exit(0); error(Egreg); }