[GRASS-SVN] r49883 - grass/trunk/raster/r.li/r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 23 10:06:09 EST 2011
Author: mmetz
Date: 2011-12-23 07:06:09 -0800 (Fri, 23 Dec 2011)
New Revision: 49883
Modified:
grass/trunk/raster/r.li/r.li.daemon/daemon.c
grass/trunk/raster/r.li/r.li.daemon/list.c
Log:
r.li.daemon: fix segfaults
Modified: grass/trunk/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/daemon.c 2011-12-23 13:32:41 UTC (rev 49882)
+++ grass/trunk/raster/r.li/r.li.daemon/daemon.c 2011-12-23 15:06:09 UTC (rev 49883)
@@ -59,7 +59,11 @@
/* int perc=0; */
g = (g_areas) G_malloc(sizeof(struct generatore));
+ g->maskname = NULL;
l = (list) G_malloc(sizeof(struct lista));
+ l->head = NULL;
+ l->tail = NULL;
+ l->size = 0;
worker_init(raster, f, parameters);
Modified: grass/trunk/raster/r.li/r.li.daemon/list.c
===================================================================
--- grass/trunk/raster/r.li/r.li.daemon/list.c 2011-12-23 13:32:41 UTC (rev 49882)
+++ grass/trunk/raster/r.li/r.li.daemon/list.c 2011-12-23 15:06:09 UTC (rev 49883)
@@ -29,7 +29,7 @@
{
node new;
- new = G_malloc(sizeof(node));
+ new = G_malloc(sizeof(struct nodoLista));
new->m = G_malloc(sizeof(msg));
if (new != NULL) {
More information about the grass-commit
mailing list