[haiku-commits] haiku: hrev52784 - src/system/kernel/fs

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 22 Jan 2019 12:48:18 -0500 (EST)

hrev52784 adds 1 changeset to branch 'master'
old head: cb0d3bd34190c1a23890827d07e5080a6971fb1b
new head: 3f77fdd1d2a03d31ee3e9426f55544167192850e
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=3f77fdd1d2a0+%5Ecb0d3bd34190

----------------------------------------------------------------------------

3f77fdd1d2a0: kernel/vfs: Fix -Werror=maybe-uninitialized.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52784
Commit:      3f77fdd1d2a03d31ee3e9426f55544167192850e
URL:         https://git.haiku-os.org/haiku/commit/?id=3f77fdd1d2a0
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Tue Jan 22 17:47:07 2019 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 3 deletions(-)
src/system/kernel/fs/vfs.cpp | 6 +++---

----------------------------------------------------------------------------

diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp
index 081db510cd..7a60705473 100644
--- a/src/system/kernel/fs/vfs.cpp
+++ b/src/system/kernel/fs/vfs.cpp
@@ -9278,7 +9278,7 @@ _user_remove_dir(int fd, const char* userPath)
        char* path = pathBuffer.LockBuffer();
 
        if (userPath != NULL) {
-               if (!IS_USER_ADDRESS(userPath)) 
+               if (!IS_USER_ADDRESS(userPath))
                        return B_BAD_ADDRESS;
                status_t status = user_copy_name(path, userPath, 
B_PATH_NAME_LENGTH);
                if (status != B_OK)
@@ -9554,7 +9554,7 @@ _user_read_stat(int fd, const char* userPath, bool 
traverseLink,
        struct stat* userStat, size_t statSize)
 {
        struct stat stat;
-       status_t status;
+       status_t status = B_OK;
 
        if (statSize > sizeof(struct stat))
                return B_BAD_VALUE;
@@ -9617,7 +9617,7 @@ _user_write_stat(int fd, const char* userPath, bool 
traverseLeafLink,
        if (statSize < sizeof(struct stat))
                memset((uint8*)&stat + statSize, 0, sizeof(struct stat) - 
statSize);
 
-       status_t status;
+       status_t status = B_OK;
 
        if (userPath != NULL) {
                // path given: write the stat of the node referred to by (fd, 
path)


Other related posts:

  • » [haiku-commits] haiku: hrev52784 - src/system/kernel/fs - waddlesplash