FLTK logo

[master] 55eee45 - Fix use of variable out-of-scope (PR #242)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 55eee45 - Fix use of variable out-of-scope (PR #242) "fire-eggs" Jun 27, 2021  
 
commit 55eee459d4a85edb6cda94e033c9b915bbfcfdbd
Author:     fire-eggs <kbroutley@gmail.com>
AuthorDate: Wed Jun 23 11:46:38 2021 -0400
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Sun Jun 27 14:34:17 2021 +0200

    Fix use of variable out-of-scope (PR #242)

 src/Fl_File_Chooser2.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_File_Chooser2.cxx src/Fl_File_Chooser2.cxx
index 6350f1d..736a2f9 100644
--- src/Fl_File_Chooser2.cxx
+++ src/Fl_File_Chooser2.cxx
@@ -1491,9 +1491,9 @@ Fl_File_Chooser::value(const char *filename)
     return;
   }
 
+  char fixpath[FL_PATH_MAX];                   // Path with slashes converted
   if (Fl::system_driver()->backslash_as_slash()) {
     // See if the filename contains backslashes...
-    char        fixpath[FL_PATH_MAX];                   // Path with slashes converted
     if (strchr(filename, '\\')) {
       // Convert backslashes to slashes...
       strlcpy(fixpath, filename, sizeof(fixpath));
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.