[ekg2-commit] r3907 - trunk/ekg: trunk/ekg/stuff.c
SVN commit
svn w toxygen.net
Sob, 15 Mar 2008, 21:05:53 CET
Author: darkjames
Date: 2008-03-15 21:05:52 +0100 (Sat, 15 Mar 2008)
New Revision: 3907
Modified:
trunk/ekg/stuff.c
Log:
fix, I don't know how this is connected with comment above, but It doesn't work without it, so i assume it's needed.
Modified: trunk/ekg/stuff.c
===================================================================
--- trunk/ekg/stuff.c 2008-03-15 13:55:22 UTC (rev 3906)
+++ trunk/ekg/stuff.c 2008-03-15 20:05:52 UTC (rev 3907)
@@ -493,7 +493,7 @@
LIST_DESTROY2(b, list_buffer_free); /* and remove them */
}
}
-
+
b = xmalloc(sizeof(struct buffer));
b->ts = time(NULL);
b->target = xstrdup(target);
@@ -502,6 +502,10 @@
LIST_ADD2(addpoint, b);
type->last = b;
+
+ if (!type->data)
+ type->data = b;
+
type->count++;
}
Więcej informacji o liście dyskusyjnej ekg2-commit