summaryrefslogtreecommitdiff
path: root/nuttx/fs/procfs
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-22 10:38:08 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-22 10:38:08 -0600
commitbe67ba527fb3ff881e715e19d40ec1e40be4d523 (patch)
tree95d0270b388e47938d66a6802114a9c662eaa5bc /nuttx/fs/procfs
parent3186036d92f495768edf903135ad737728e6a5b7 (diff)
downloadpx4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.gz
px4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.bz2
px4-nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.zip
Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
Diffstat (limited to 'nuttx/fs/procfs')
-rw-r--r--nuttx/fs/procfs/fs_procfs.c2
-rw-r--r--nuttx/fs/procfs/fs_procfsproc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/procfs/fs_procfs.c b/nuttx/fs/procfs/fs_procfs.c
index f1d98d0a7..9d3602d2e 100644
--- a/nuttx/fs/procfs/fs_procfs.c
+++ b/nuttx/fs/procfs/fs_procfs.c
@@ -558,7 +558,7 @@ static int procfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
FAR struct procfs_dir_priv_s *priv;
FAR struct procfs_level0_s *level0;
FAR struct tcb_s *tcb;
- FAR const char *name;
+ FAR const char *name = NULL;
unsigned int index;
irqstate_t flags;
pid_t pid;
diff --git a/nuttx/fs/procfs/fs_procfsproc.c b/nuttx/fs/procfs/fs_procfsproc.c
index e45182252..c5b1b67c3 100644
--- a/nuttx/fs/procfs/fs_procfsproc.c
+++ b/nuttx/fs/procfs/fs_procfsproc.c
@@ -1287,7 +1287,7 @@ static int proc_closedir(FAR struct fs_dirent_s *dir)
static int proc_readdir(struct fs_dirent_s *dir)
{
FAR struct proc_dir_s *procdir;
- FAR const struct proc_node_s *node;
+ FAR const struct proc_node_s *node = NULL;
FAR struct tcb_s *tcb;
unsigned int index;
irqstate_t flags;