aboutsummaryrefslogtreecommitdiff
path: root/sysutils/isomaster/files/patch-boot.c
blob: b74cec4713636e90611f358853ab83e5de8353ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- boot.c.orig	Thu Jan 11 16:42:31 2007
+++ boot.c	Wed Jan 17 14:35:49 2007
@@ -48,10 +48,11 @@
     
     if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
     {
+        char* lastBootRecordDir;
         filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
         
         /* RECORD last boot record dir */
-        char* lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+        lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
         
         if(GBLappSettings.lastBootRecordDir != NULL && 
            strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir))
@@ -162,10 +163,11 @@
     
     if(dialogResponse == GTK_RESPONSE_ACCEPT)
     {
+        char* lastBootRecordDir;
         filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
         
         /* RECORD last boot record dir */
-        char* lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
+        lastBootRecordDir = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog));
         
         if(GBLappSettings.lastBootRecordDir != NULL && 
            strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir))