[augeas-devel] augeas: master - Fix uninitialized variables found by optimizer
David Lutterkort
lutter at fedoraproject.org
Fri Mar 27 23:29:09 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=cc239c5f80f013991194e453d16e6781ef69d2fd
Commit: cc239c5f80f013991194e453d16e6781ef69d2fd
Parent: 6672ea305de0f216d821d0f81b53a9d9649f8a42
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Fri Mar 27 16:01:01 2009 -0700
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Mar 27 16:01:01 2009 -0700
Fix uninitialized variables found by optimizer
---
src/augeas.c | 2 +-
src/pathx.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/augeas.c b/src/augeas.c
index 3b654f1..e6f6326 100644
--- a/src/augeas.c
+++ b/src/augeas.c
@@ -367,7 +367,7 @@ int aug_get(const struct augeas *aug, const char *path, const char **value) {
}
int aug_defvar(augeas *aug, const char *name, const char *expr) {
- struct pathx *p;
+ struct pathx *p = NULL;
int result = -1;
if (expr == NULL) {
diff --git a/src/pathx.c b/src/pathx.c
index 017d142..b45b74d 100644
--- a/src/pathx.c
+++ b/src/pathx.c
@@ -2068,7 +2068,7 @@ static int locpath_search(struct locpath_trace *lpt,
*/
int pathx_expand_tree(struct pathx *path, struct tree **tree) {
int r;
- struct step *step;
+ struct step *step = NULL;
struct locpath_trace lpt;
struct tree *first_child = NULL;
struct value *v = NULL;
More information about the augeas-devel
mailing list