Bail out before allocating slides if file is empty
authorQuentin Rameau <quinq+hackers@fifth.space>
Wed, 18 Nov 2015 22:21:33 +0000 (23:21 +0100)
committerMarkus Teich <markus.teich@stusta.mhn.de>
Wed, 18 Nov 2015 22:26:33 +0000 (23:26 +0100)
commita1dcdad14fb3a8ccdc97e86cb3aa25684778819c
tree46def943c039794d0189b049de4b89980fc01a96
parenteac14478e949e29e442922d997f057573ddd9923
Bail out before allocating slides if file is empty

In load() we allocated slides before checking if we actually read
anything from the FILE fp and then continue with an allocated but
“empty” space wich would lead to errors.
sent.c