catpoint

simple slides viewer
git clone git://git.2f30.org/catpoint
Log | Files | Refs | README | LICENSE

commit 60fcfddbd530dbb7ddd35cafee283010f69fe12e
parent 7f8dd9be055e5c942aefab1091b542e40450136f
Author: lostd <lostd@2f30.org>
Date:   Tue, 17 Dec 2013 16:45:50 +0200

Matter of taste

Diffstat:
Mcatpoint.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/catpoint.c b/catpoint.c @@ -38,8 +38,8 @@ main(int argc, char *argv[]) argv++; argc--; - s = malloc(argc * sizeof(*s)); - if (!s) + s = malloc(argc * sizeof(struct slide)); + if (s == NULL) err(1, "malloc"); /* map files to mem */