From 81cd3e02148ad1c468f99470cdd7fe591856387b Mon Sep 17 00:00:00 2001 From: pooka Date: Mon, 9 Apr 2007 20:59:08 +0000 Subject: [PATCH] fix another case of checking for return value from wrong variable (that's what you get when you copypaste code, a cid with a pin to burst your bubble, that's what you get for all your troubles, I'll never copypaste again) CID 4461 --- usr.sbin/puffs/mount_psshfs/node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/puffs/mount_psshfs/node.c b/usr.sbin/puffs/mount_psshfs/node.c index aa76c17bf8a5..70404e4860fa 100644 --- a/usr.sbin/puffs/mount_psshfs/node.c +++ b/usr.sbin/puffs/mount_psshfs/node.c @@ -1,4 +1,4 @@ -/* $NetBSD: node.c,v 1.13 2007/04/09 20:52:32 pooka Exp $ */ +/* $NetBSD: node.c,v 1.14 2007/04/09 20:59:08 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -30,7 +30,7 @@ #include #ifndef lint -__RCSID("$NetBSD: node.c,v 1.13 2007/04/09 20:52:32 pooka Exp $"); +__RCSID("$NetBSD: node.c,v 1.14 2007/04/09 20:59:08 pooka Exp $"); #endif /* !lint */ #include @@ -521,7 +521,7 @@ psshfs_node_symlink(struct puffs_cc *pcc, void *opc, void **newnode, } pn_new = allocnode(pu, pn, pcn->pcn_name, va); - if (!pn) { + if (!pn_new) { rv = ENOMEM; goto out; }