added default values for restoring

This commit is contained in:
Daniel Glanzmann
2008-09-29 21:11:25 +02:00
parent 7062cecd72
commit 6633597475
3 changed files with 3 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
int unattended = 0;
struct keyvalue *unattendedkv = initkeyvalues();
int hardyn = 0;
char restore_file[STRING_SIZE];
char restore_file[STRING_SIZE] = "";
setlocale (LC_ALL, "");
sethostname( SNAME , 10);

View File

@@ -41,7 +41,7 @@ int unattended_setup(struct keyvalue *unattendedkv) {
char green_broadcast[STRING_SIZE];
char root_password[STRING_SIZE];
char admin_password[STRING_SIZE];
char restore_file[STRING_SIZE];
char restore_file[STRING_SIZE] = "";
findkey(unattendedkv, "DOMAINNAME", domainname);
findkey(unattendedkv, "HOSTNAME", hostname);