t* My version of sent
       
   URI git clone git://git.codevoid.de/sent-sdk.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a5f760fa0ed3e6e8a04675d7cfa97cdb75791efd
   DIR parent 53541ee1bd0f6490ad62a1a8d7de3d154558a7ea
   URI Author: Laslo Hunhold <dev@frign.de>
       Date:   Thu,  7 Sep 2017 11:01:10 +0200
       
       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
       tthe future.
       
       Diffstat:
         M sent.c                              |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/sent.c b/sent.c
       t@@ -457,6 +457,9 @@ load(FILE *fp)
                        if (!p)
                                break;
                }
       +
       +        if (!slidecount)
       +                die("sent: No slides in file");
        }
        
        void
       t@@ -695,9 +698,6 @@ main(int argc, char *argv[])
                load(fp);
                fclose(fp);
        
       -        if (!slidecount)
       -                usage();
       -
                xinit();
                run();