diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-03-10 08:45:29 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-03-10 08:45:29 +0000 |
commit | ad4c20f15e0697d252439b09e0113832285cb54b (patch) | |
tree | 4371c38be9669e8b541dc97765eaf767608ae41b | |
parent | 81e265e3d4106fabf8d9af89922e37f768abda27 (diff) |
Make sure return value 'error' is initialized to '0'.
ok dlg@ deraadt@
-rw-r--r-- | sys/net/ifq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/ifq.c b/sys/net/ifq.c index e48d3cc7d47..1a1bfcd0773 100644 --- a/sys/net/ifq.c +++ b/sys/net/ifq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifq.c,v 1.36 2020/01/25 06:31:32 dlg Exp $ */ +/* $OpenBSD: ifq.c,v 1.37 2020/03/10 08:45:28 tobhe Exp $ */ /* * Copyright (c) 2015 David Gwynne <dlg@openbsd.org> @@ -395,7 +395,7 @@ ifq_deq_sleep(struct ifqueue *ifq, struct mbuf **mp, int nbio, int priority, { struct mbuf *m; void *cookie; - int error; + int error = 0; ifq_deq_enter(ifq); if (ifq->ifq_len == 0 && nbio) |