From 79f79d292c8ffe7a172237c614345a7bc667de80 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 10 Mar 2016 16:07:24 +0000 Subject: Remove redundant recursion (as suggested in [fltk.coredev] [porting] Remove redundant recursion) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image_Surface.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx index 0e31d45b1..964c5d567 100644 --- a/src/Fl_Image_Surface.cxx +++ b/src/Fl_Image_Surface.cxx @@ -141,7 +141,6 @@ static int find_slot(void) { // return an available slot to memorize an Fl_Image if (count_offscreens >= max) { max += 20; offscreen_api_surface = (Fl_Image_Surface**)realloc(offscreen_api_surface, max * sizeof(void *)); - return find_slot(); } return count_offscreens++; } -- cgit v1.2.3