diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-05 00:06:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-05 00:06:41 +0000 |
| commit | 2fbee9c1500a7b3862732bdfa2ad6fef9dcc3092 (patch) | |
| tree | b21d36a0dd1832c6b7eb33f6390e64b791642304 /src/Fl_File_Chooser2.cxx | |
| parent | fc3999a24ed8c82c5bca139e7fd63f9c0a6b9058 (diff) | |
Segfault fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 62af75003..3bcdb90b2 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.4 2001/11/25 16:38:11 easysw Exp $" +// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.5 2001/12/05 00:06:41 easysw Exp $" // // More Fl_File_Chooser routines. // @@ -424,6 +424,9 @@ Fl_File_Chooser::fileListCB() filename = (char *)fileList->text(fileList->value()); + if (!filename) + return; + if (directory_[0] != '\0') snprintf(pathname, sizeof(pathname), "%s/%s", directory_, filename); else @@ -704,5 +707,5 @@ Fl_File_Chooser::fileNameCB() // -// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.4 2001/11/25 16:38:11 easysw Exp $". +// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.5 2001/12/05 00:06:41 easysw Exp $". // |
