Commit ee50dea8 authored by hpi1's avatar hpi1

initialize chapters to zero (fixes allocating random amount of memory)

parent c9b6ce32
......@@ -205,7 +205,7 @@ NAV_TITLE* nav_title_open(char *root, char *playlist)
{
NAV_TITLE *title = NULL;
char *path;
int ii, chapters;
int ii, chapters = 0;
title = malloc(sizeof(NAV_TITLE));
if (title == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment