commit 467032079b93d16b11eaab6125a6e02abcee9ba1
parent 7477765db204689787ff26151d59c43cc0fbc803
Author: sqweek <sqweek@gmail.com>
Date: Sat, 20 Sep 2008 22:53:26 +0800
Fix order of debug message so we don't dereference a random pointer.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/examples/ixpsrv.c b/examples/ixpsrv.c
@@ -250,11 +250,10 @@ fs_stat(Ixp9Req *r) {
FidAux *f;
int size;
+ f = r->fid->aux;
debug("fs_stat(%p)\n", r);
debug("fs_stat %s\n", f->name);
- f = r->fid->aux;
-
name = f->name;
if (stat(name, &st) < 0){
respond(r, Enofile);