From mboxrd@z Thu Jan 1 00:00:00 1970 From: David T Hollis Subject: Bug in plugin/object/obj40/obj40_repair.c Date: Thu, 28 Aug 2003 07:27:38 -0400 Message-ID: <3F4DE72A.60306@davehollis.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" 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;