From f494d16ef901fdeda89cc366185b1b30257b63c1 Mon Sep 17 00:00:00 2001 From: deen Date: Mon, 26 Feb 2007 22:06:30 +0000 Subject: [PATCH] Fix an error where the garbage may be returned by this function because of uninitialized pointer. r=rmg@ (nathan) --- lustre/ptlrpc/pack_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 2244e47..0279dcf 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -989,7 +989,7 @@ char *lustre_msg_string(struct lustre_msg *m, int index, int max_len) void *lustre_swab_buf(struct lustre_msg *msg, int index, int min_size, void *swabber) { - void *ptr; + void *ptr = NULL; switch (msg->lm_magic) { case LUSTRE_MSG_MAGIC_V1: -- 1.8.3.1