From: simonmar Date: Mon, 9 Jan 2006 14:38:01 +0000 (+0000) Subject: [project @ 2006-01-09 14:38:01 by simonmar] X-Git-Tag: final_switch_to_darcs,_this_repo_is_now_live~46 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=86010e433ff9534809e43b8d2ffcda682d011a28 [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. --- 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++;