[project @ 2006-01-09 14:38:01 by simonmar]
authorsimonmar <unknown>
Mon, 9 Jan 2006 14:38:01 +0000 (14:38 +0000)
committersimonmar <unknown>
Mon, 9 Jan 2006 14:38:01 +0000 (14:38 +0000)
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

index 2552e76..0a59d1c 100644 (file)
@@ -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++;