Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Do not use uninitialized pointer if posix_me...
details: https://anonhg.NetBSD.org/src/rev/6e53ab1fc5fb
branches: trunk
changeset: 327761:6e53ab1fc5fb
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Mar 16 10:23:59 2014 +0000
description:
Do not use uninitialized pointer if posix_memalign() fails.
diffstat:
lib/librumpuser/rumpuser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cd577aab22dd -r 6e53ab1fc5fb lib/librumpuser/rumpuser.c
--- a/lib/librumpuser/rumpuser.c Sun Mar 16 10:16:15 2014 +0000
+++ b/lib/librumpuser/rumpuser.c Sun Mar 16 10:23:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.c,v 1.57 2014/02/20 00:44:20 pooka Exp $ */
+/* $NetBSD: rumpuser.c,v 1.58 2014/03/16 10:23:59 njoly Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.57 2014/02/20 00:44:20 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.58 2014/03/16 10:23:59 njoly Exp $");
#endif /* !lint */
#include <sys/ioctl.h>
@@ -217,7 +217,7 @@
int
rumpuser_malloc(size_t howmuch, int alignment, void **memp)
{
- void *mem;
+ void *mem = NULL;
int rv;
if (alignment == 0)
Home |
Main Index |
Thread Index |
Old Index