diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-07 18:31:55 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-07 18:31:55 +0000 |
| commit | 6fa4abfe545e04186bca73f4d1e12fb7eb091ead (patch) | |
| tree | 4a2801a5ae2e729e063117e14bb6901364148abd /src/Fl_mac.cxx | |
| parent | ed45695bf5b024c8d7a0b2391acc2b6e99a84d05 (diff) | |
Fix NULL argument to fl_filename_name()...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_mac.cxx')
| -rw-r--r-- | src/Fl_mac.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index 7e81fb38e..ae5f2b9c3 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.17 2002/03/26 17:35:18 easysw Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.18 2002/04/07 18:31:55 easysw Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -1166,6 +1166,7 @@ void Fl_Window::size_range_() { const char *fl_filename_name( const char *name ) { const char *p, *q; + if (!name) return (0); for ( p = q = name ; *p ; ) { if ( ( p[0] == ':' ) && ( p[1] == ':' ) ) @@ -1358,6 +1359,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.17 2002/03/26 17:35:18 easysw Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.18 2002/04/07 18:31:55 easysw Exp $". // |
