All of lore.kernel.org
 help / color / mirror / Atom feed
From: David T Hollis <dhollis@davehollis.com>
To: Reiserfs List <reiserfs-list@namesys.com>
Subject: Bug in plugin/object/obj40/obj40_repair.c
Date: Thu, 28 Aug 2003 07:27:38 -0400	[thread overview]
Message-ID: <3F4DE72A.60306@davehollis.com> (raw)

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;
                                                                               
 



             reply	other threads:[~2003-08-28 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-28 11:27 David T Hollis [this message]
2003-08-28 11:36 ` Bug in plugin/object/obj40/obj40_repair.c Vitaly Fertman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F4DE72A.60306@davehollis.com \
    --to=dhollis@davehollis.com \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.