]> git.alsa-project.org Git - alsa-oss.git/commit
[ALSA-OSS] Always initialize pointers before use
authorStas Sergeev <stsp@aknet.ru>
Mon, 13 Sep 2004 16:07:57 +0000 (16:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Sep 2004 16:07:57 +0000 (16:07 +0000)
commitd98744286c97255283b5a8228db356422f7a8242
tree9bcc0dfe66ea726146147ee7c9d606c8cd6f290a
parentef2ab8afc479a66562541181d8975dd8b28a59c3
[ALSA-OSS] Always initialize pointers before use

This patch makes sure that the initialize() is always called
before any pointer to function is used. Somehow it happens
that the __attribute__((constructor)) is not always sufficient -
other libs may have that attribute either, and may call fopen()
from within their constructors, which leads to a SIGSEGV, that
this patch fixes. Perhaps the __attribute__((constructor)) is no
longer needed with that patch at all.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>
alsa/alsa-oss.c