Correctly handle files that contain no slides
authorLaslo Hunhold <dev@frign.de>
Thu, 7 Sep 2017 09:01:10 +0000 (11:01 +0200)
committerMarkus Teich <teichm@fs.tum.de>
Thu, 7 Sep 2017 21:37:00 +0000 (23:37 +0200)
commita5f760fa0ed3e6e8a04675d7cfa97cdb75791efd
tree3324870cc33516acc28a74fcb2dfc663aec0b820
parent53541ee1bd0f6490ad62a1a8d7de3d154558a7ea
Correctly handle files that contain no slides

Otherwise, on reloading sent would segfault. Move the check-logic to
load() rather than doing it in main() to prevent other misuses of it in
the future.
sent.c