]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
throbber: don't report successful load when no assets
authorCosimo Cecchi <cosimo@endlessm.com>
Fri, 7 Nov 2014 18:12:52 +0000 (10:12 -0800)
committerRay Strode <rstrode@redhat.com>
Mon, 5 Jan 2015 17:48:34 +0000 (12:48 -0500)
Currently, the throbber will report a successful load when zero assets
are loaded. Change it so that zero assets do not result in a
successfully loaded throbber.

This is similar to commit 3d7f4fe44148ca94dceabb631850971c582bff3f but
for throbber objects instead of animation objects.

src/libply-splash-graphics/ply-throbber.c

index 64537fb51886b9d7332aa2038e1da12b9a8c84b7..ed671e553010a27154d3204af7fed9d74eded9bf 100644 (file)
@@ -235,7 +235,7 @@ ply_throbber_add_frames (ply_throbber_t *throbber)
 
         number_of_entries = scandir (throbber->image_dir, &entries, NULL, versionsort);
 
-        if (number_of_entries < 0)
+        if (number_of_entries <= 0)
                 return false;
 
         load_finished = false;