Module Name: src Committed By: njoly Date: Sun Mar 16 10:23:59 UTC 2014
Modified Files: src/lib/librumpuser: rumpuser.c Log Message: Do not use uninitialized pointer if posix_memalign() fails. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/lib/librumpuser/rumpuser.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser.c diff -u src/lib/librumpuser/rumpuser.c:1.57 src/lib/librumpuser/rumpuser.c:1.58 --- src/lib/librumpuser/rumpuser.c:1.57 Thu Feb 20 00:44:20 2014 +++ src/lib/librumpuser/rumpuser.c Sun Mar 16 10:23:59 2014 @@ -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 @@ rumpuser_getfileinfo(const char *path, u int rumpuser_malloc(size_t howmuch, int alignment, void **memp) { - void *mem; + void *mem = NULL; int rv; if (alignment == 0)