dom0: Fix uninitialized variable in qubes_restore

This commit is contained in:
Marek Marczykowski 2011-06-29 19:24:32 +02:00
parent 70e73ed710
commit acbc6534bc

View File

@ -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;