Re: [Tracker] Uninitialized variable in tracker-files.c
- From: Martyn Russell <martyn imendio com>
- To: Luca Ferretti <elle uca libero it>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Uninitialized variable in tracker-files.c
- Date: Tue, 09 Dec 2008 09:38:53 +0000
On 08/12/08 19:54, Luca Ferretti wrote:
I was checking tracker-utils/*c due to some localization issues (more on
this later). In tracker-files.c shouldn't it be:
static gint limit = 512;
-static gint offset;
+static gint offset = 0;
Hi,
As far as I am aware, the compiler should initialize variables not set
in static statements to NULL or 0. The only reason we do it for limit is
because we want something other than 0 of course.
I am not sure, but GLib may actually set the values too in GOption when
the arguments are parsed.
--
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]