in case of no error, init *error to 0

This commit is contained in:
pooka 2007-08-07 16:55:22 +00:00
parent ea44cd3ae2
commit 24293880e1
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpuser.c,v 1.2 2007/08/06 22:20:57 pooka Exp $ */
/* $NetBSD: rumpuser.c,v 1.3 2007/08/07 16:55:22 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -46,6 +46,8 @@ do { \
rv = call; \
if (rv == -1) \
*error = errno; \
else \
*error = 0; \
return rv; \
} while (/*CONSTCOND*/0)