From 86010e433ff9534809e43b8d2ffcda682d011a28 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 9 Jan 2006 14:38:01 +0000 Subject: [PATCH] [project @ 2006-01-09 14:38:01 by simonmar] Initialise part of a structure to NULL to avoid a gcc warning I haven't checked the code on this one to be sure this isn't just a bug. --- ghc/utils/prof/cgprof/daVinci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/utils/prof/cgprof/daVinci.c b/ghc/utils/prof/cgprof/daVinci.c index 2552e76..0a59d1c 100644 --- a/ghc/utils/prof/cgprof/daVinci.c +++ b/ghc/utils/prof/cgprof/daVinci.c @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------------ - * $Id: daVinci.c,v 1.4 2003/08/01 15:10:34 panne Exp $ + * $Id: daVinci.c,v 1.5 2006/01/09 14:38:01 simonmar Exp $ * * Copyright (C) 1995-2000 University of Oxford * @@ -631,6 +631,7 @@ davinciCmd parseDaVinciCmd(char *input) { int i; result.size=1; + result.list=NULL; for(crp=input;*crp;crp++) if (*crp==',') result.size++; -- 1.7.10.4