[augeas-devel] augeas: master - * src/get.c (no_match_error): initialize lname
David Lutterkort
lutter at fedoraproject.org
Thu Jan 28 01:52:31 UTC 2010
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=e02c950c452ebc3ea88b170bdb10fce4155b463d
Commit: e02c950c452ebc3ea88b170bdb10fce4155b463d
Parent: f154cabdffacebe39767902d83d03dc68f1e1240
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Wed Jan 27 17:49:21 2010 -0800
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Jan 27 17:49:21 2010 -0800
* src/get.c (no_match_error): initialize lname
Otherwise, gcc complains about a possibly uninitialized value with -O2
---
src/get.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/get.c b/src/get.c
index 78ed6be..3efaaba 100644
--- a/src/get.c
+++ b/src/get.c
@@ -274,7 +274,7 @@ static void no_match_error(struct state *state, struct lens *lens) {
ensure(lens->tag == L_KEY || lens->tag == L_DEL
|| lens->tag == L_STORE, state->info);
char *pat = regexp_escape(lens->ctype);
- const char *lname;
+ const char *lname = "(lname)";
if (lens->tag == L_KEY)
lname = "key";
else if (lens->tag == L_DEL)
More information about the augeas-devel
mailing list