]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix use of uninitialized afhi->header_len.
authorAndre Noll <maan@systemlinux.org>
Wed, 19 Mar 2008 20:51:46 +0000 (21:51 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 19 Mar 2008 20:51:46 +0000 (21:51 +0100)
commit6d5a56308a3a833b08ae0e3692b794fb6122ea60
treececa3a19894808a55c881c75a42659e03289cf64
parent462b1973f28bd6f021b02cd3e6b44edc0c7f5502
Fix use of uninitialized afhi->header_len.

In aft's add_one_audio_file() we set the header len and
the header offset to zero so that the get_file_info()
functions of the audio format handlers that do not use
headers don't need to zero these fields.

However, this is not the right place to do that as para_afh
also calls get_file_info() via compute_afhi() but missed to
clear these fields which leads to a segmentation fault.

Fix this bug by moving the zeroing to compute_afhi().
afh_common.c
aft.c