]> git.alsa-project.org Git - alsa-lib.git/commitdiff
initialize dl handles where it needs to
authorBenoit Fouet <benoit.fouet@purplelabs.com>
Mon, 8 Jan 2007 14:07:02 +0000 (15:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jan 2007 14:07:02 +0000 (15:07 +0100)
this trivial patch initializes dl handle in timer.c and timer_query.c
where it needs to.

Signed-off-by: Benoit Fouet <benoit.fouet@purplelabs.com>
src/timer/timer.c
src/timer/timer_query.c

index ef824c12a34c5a680e9df94dfb9f755f6ad42ac4..7776bb1c2dcc1d413fbf61aa2c13fd7858d6e632 100644 (file)
@@ -92,7 +92,7 @@ static int snd_timer_open_conf(snd_timer_t **timer,
 #ifndef PIC
        extern void *snd_timer_open_symbols(void);
 #endif
-       void *h;
+       void *h = NULL;
        if (snd_config_get_type(timer_conf) != SND_CONFIG_TYPE_COMPOUND) {
                if (name)
                        SNDERR("Invalid type for TIMER %s definition", name);
index 3847ec445181a787eca27fa1da2cf2eca91df6a9..6bbe8bf2d652a845a88b1abc443184cad31c7994 100644 (file)
@@ -50,7 +50,7 @@ static int snd_timer_query_open_conf(snd_timer_query_t **timer,
 #ifndef PIC
        extern void *snd_timer_query_open_symbols(void);
 #endif
-       void *h;
+       void *h = NULL;
        if (snd_config_get_type(timer_conf) != SND_CONFIG_TYPE_COMPOUND) {
                if (name)
                        SNDERR("Invalid type for TIMER %s definition", name);