Parcourir la source

Fixed segfault when run with -c

master
Bert Münnich il y a 11 ans
Parent
révision
25077ac764
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      Makefile
  2. +1
    -1
      thumbs.c

+ 1
- 1
Makefile Voir le fichier

@@ -1,4 +1,4 @@
VERSION = git-20141025
VERSION = git-20141029

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
thumbs.c Voir le fichier

@@ -161,7 +161,7 @@ void tns_init(tns_t *tns, const fileinfo_t *files, const int *cnt, int *sel,
if (tns == NULL)
return;

if (*cnt > 0) {
if (cnt != NULL && *cnt > 0) {
tns->thumbs = (thumb_t*) s_malloc(*cnt * sizeof(thumb_t));
memset(tns->thumbs, 0, *cnt * sizeof(thumb_t));
} else {


Chargement…
Annuler
Enregistrer