Initialize retval.

Fri Jan 13 22:59:48 2006  Soeren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (sysprof_open): Initialize retval.

	* module/sysprof-module.c (sysprof_read): Copy contents of trace,
	not tail to the buffer.
This commit is contained in:
Soeren Sandmann
2006-01-14 04:00:59 +00:00
committed by Søren Sandmann Pedersen
parent c65bfcc114
commit 2d525523f8
3 changed files with 12 additions and 3 deletions

View File

@ -114,7 +114,7 @@ on_read (gpointer data)
if (rd == -1 && errno == EWOULDBLOCK)
return;
g_get_current_time (&now);
/* After a reset we ignore samples for a short period so that