Unverified Commit 94bd8609 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel Committed by GitHub
Browse files

Merge pull request #818 from elig0n/fix_mtime_url_bug

filelist.c: skip stat of urls when sorting
parents a37a7dbc a5a62cd7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "filelist.h"
#include "signals.h"
#include "options.h"
#include "utils.h"

#ifdef HAVE_LIBCURL
#include <curl/curl.h>
@@ -331,7 +332,7 @@ gib_list *feh_file_info_preload(gib_list * list, int load_images)
			} else if (opt.verbose)
				feh_display_status('.');
		} else {
			if (feh_file_stat(file)) {
			if (!path_is_url(file->filename) && feh_file_stat(file)) {
				D(("Failed to stat file %p\n", file));
				remove_list = gib_list_add_front(remove_list, l);
			}