* Bug in plugin/object/obj40/obj40_repair.c
@ 2003-08-28 11:27 David T Hollis
2003-08-28 11:36 ` Vitaly Fertman
0 siblings, 1 reply; 2+ messages in thread
From: David T Hollis @ 2003-08-28 11:27 UTC (permalink / raw)
To: Reiserfs List
I was having trouble compiling reiser4progs due to warnings being
treated as errors and came across this function that GCC reported 'info
possibly being used uninitialized'. In looking at it, it does look
bad. Info is never assigned to anything before it is being accessed. I
don't know what it is supposed to point to so I can't provide a patch at
this time, but I thought I'd bring it up.
/* Checks that @obj->info.start is SD of the wanted file. */
errno_t obj40_stat(obj40_t *obj, stat_func_t stat_func) {
object_info_t *info;
errno_t res;
aal_assert("vpf-1200", obj != NULL);
if (!info->start.plug) {
^^^^^^^^^^^^^^^^^^^^^
if (!obj->core->tree_ops.valid(info->tree, &info->start))
return RE_FATAL;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Bug in plugin/object/obj40/obj40_repair.c
2003-08-28 11:27 Bug in plugin/object/obj40/obj40_repair.c David T Hollis
@ 2003-08-28 11:36 ` Vitaly Fertman
0 siblings, 0 replies; 2+ messages in thread
From: Vitaly Fertman @ 2003-08-28 11:36 UTC (permalink / raw)
To: David T Hollis; +Cc: Reiserfs List
Hi David,
On Thursday 28 August 2003 15:27, David T Hollis wrote:
> I was having trouble compiling reiser4progs due to warnings being
> treated as errors and came across this function that GCC reported 'info
> possibly being used uninitialized'. In looking at it, it does look
> bad. Info is never assigned to anything before it is being accessed. I
> don't know what it is supposed to point to so I can't provide a patch at
> this time, but I thought I'd bring it up.
>
>
> /* Checks that @obj->info.start is SD of the wanted file. */
> errno_t obj40_stat(obj40_t *obj, stat_func_t stat_func) {
> object_info_t *info;
> errno_t res;
>
>
> aal_assert("vpf-1200", obj != NULL);
>
>
> if (!info->start.plug) {
> ^^^^^^^^^^^^^^^^^^^^^
> if (!obj->core->tree_ops.valid(info->tree, &info->start))
> return RE_FATAL;
thank you for the report, I am fixing it now.
--
Thanks,
Vitaly Fertman
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-28 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28 11:27 Bug in plugin/object/obj40/obj40_repair.c David T Hollis
2003-08-28 11:36 ` Vitaly Fertman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.