[augeas-devel] augeas: master - * src/augtool.c: initialize 'line' to NULL

David Lutterkort lutter at fedoraproject.org
Wed Jun 10 00:34:30 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=b0ce1fffcec502c9959198e2193bedd008d1c7a7
Commit:        b0ce1fffcec502c9959198e2193bedd008d1c7a7
Parent:        aa2763a1772cd30a9651812fcce8030e187e208c
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Tue Jun 9 16:13:03 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Tue Jun 9 16:19:50 2009 -0700

* src/augtool.c: initialize 'line' to NULL

---
 src/augtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/augtool.c b/src/augtool.c
index cb234ff..25c390c 100644
--- a/src/augtool.c
+++ b/src/augtool.c
@@ -630,7 +630,7 @@ static void parse_opts(int argc, char **argv) {
 
 static int main_loop(void) {
     static const int maxargs = 3;
-    char *line;
+    char *line = NULL;
     char *cmd, *args[maxargs];
     int ret = 0;
     size_t len = 0;




More information about the augeas-devel mailing list