From acbc6534bc8652b7506fa0932dd33cf30c253dba Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 29 Jun 2011 19:24:32 +0200 Subject: [PATCH] dom0: Fix uninitialized variable in qubes_restore --- dom0/restore/qubes_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/restore/qubes_restore.c b/dom0/restore/qubes_restore.c index 5c5693a4..cdc1e52e 100644 --- a/dom0/restore/qubes_restore.c +++ b/dom0/restore/qubes_restore.c @@ -250,7 +250,7 @@ void fill_field(FILE *conf, char *field, int dispid, int netvm_id) // val - string to replace pattern with void fix_conffile(FILE *conf, int conf_templ, int dispid, int netvm_id) { - int buflen, cur_len = 0; + int buflen = 0, cur_len = 0; char buf[4096]; char *bufpos = buf; char *pattern, *patternend;