This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch pr54
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1922801e62109504ad979a53ef0c66e3f831cefd
Author: Alin Jerpelea <[email protected]>
AuthorDate: Tue May 9 17:46:12 2017 +0900

    fs: smartfs: Fix uninitialized variable warnings
---
 fs/smartfs/smartfs_utils.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c
index 8731f7b..dea4e42 100644
--- a/fs/smartfs/smartfs_utils.c
+++ b/fs/smartfs/smartfs_utils.c
@@ -486,6 +486,11 @@ int smartfs_finddirentry(struct smartfs_mountpt_s *fs,
   struct      smart_read_write_s readwrite;
   struct      smartfs_entry_header_s *entry;
 
+  /* Set the initial value of the output */
+
+  *parentdirsector = 0xffff;
+  *filename = NULL;
+
   /* Initialize directory level zero as the root sector */
 
   dirstack[0] = fs->fs_rootsector;

Reply via email to