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
This commit is contained in:
pooka 2007-04-09 20:59:08 +00:00
parent fb8082e163
commit 81cd3e0214
1 changed files with 3 additions and 3 deletions

View File

@ -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 <sys/cdefs.h>
#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 <assert.h>
@ -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;
}