spiv: Fix image list counter
commit69d7c9ef5642dee09b76da64d79f5f5e474501e5
authorCyril Hrubis <metan@ucw.cz>
Mon, 23 Oct 2017 16:26:46 +0000 (23 18:26 +0200)
committerCyril Hrubis <metan@ucw.cz>
Mon, 13 Nov 2017 20:19:01 +0000 (13 21:19 +0100)
tree21118f456b107c8fb4fae3fc34a771fa505f17be
parent500eb1a9b1bc02f690025bdbcc6bde1920146ed5
spiv: Fix image list counter

We have to add cur_file only and only if we are inside of a directory,
otherwise we end up with random position.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
demos/spiv/image_list.c