diff options
Diffstat (limited to 'libhb/batch.c')
-rw-r--r-- | libhb/batch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/batch.c b/libhb/batch.c index 1ae70d9ec..050d1e0c8 100644 --- a/libhb/batch.c +++ b/libhb/batch.c @@ -53,6 +53,12 @@ hb_batch_t * hb_batch_init( hb_handle_t *h, char * path ) { count++; } + + if (count == 0) + { + return NULL; + } + files = malloc(count * sizeof(char*)); // Find all regular files |