All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sonic Zhang <sonic.zhang@intel.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] A patch to remove compile warnings in file inode.c
Date: Thu Apr  1 02:35:32 2004	[thread overview]
Message-ID: <406BD458.3060203@intel.com> (raw)

Hi,

    This is a patch to remove compile warnings in file inode.c.

/root/projects/ocfs2/src/inode.c: In function `ocfs_find_actor':
/root/projects/ocfs2/src/inode.c:562: warning: `args' might be used 
uninitialized in this function

See the attachment.

--------------------------------------------------
--- src/inode.c.old    2004-04-01 16:27:32.683665136 +0800
+++ src/inode.c    2004-04-01 16:29:49.864810432 +0800
@@ -559,7 +559,7 @@
  */
 int ocfs_find_actor (struct inode *inode, void *opaque)
 {
-    ocfs_find_inode_args *args;
+    ocfs_find_inode_args *args = NULL;
     int ret = 0;
     __u64 fileOff;
     ocfs_file_entry *fe = NULL;

-------------- next part --------------
--- src/inode.c.old	2004-04-01 16:27:32.683665136 +0800
+++ src/inode.c	2004-04-01 16:29:49.864810432 +0800
@@ -559,7 +559,7 @@
  */
 int ocfs_find_actor (struct inode *inode, void *opaque)
 {
-	ocfs_find_inode_args *args;
+	ocfs_find_inode_args *args = NULL;
 	int ret = 0;
 	__u64 fileOff;
 	ocfs_file_entry *fe = NULL;

                 reply	other threads:[~2004-04-01  2:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=406BD458.3060203@intel.com \
    --to=sonic.zhang@intel.com \
    --cc=ocfs2-devel@oss.oracle.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.