Fix a memory access violation resulting from improper error propogation.
PATCH 1/1 Fix a memory access violation resulting from improper error propogation.
From: Allan Wirth <[email protected]>
Fixes an issue where a variable is used undeclared, which can cause seg faults on some systems if the configuration file is not formatted properly.
Signed-off-by Allan Wirth <[email protected]>
src/conf.c +1 -1
@@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_tif (err <0 ) goto _err; } - }else if (config_file_open (root, fi[idx].name) <0 ) + }else if ((err =config_file_open (root, fi[idx].name)) <0 ) goto _err; } *dst =NULL ;
Signature · 1 line
1.7.10.4
Takashi Iwai
AppliedAt Thu, 31 Jan 2013 13:55:33 -0500,
Quoted 8 lines · [email protected] wrote:
From: Allan Wirth <[email protected]>
Fixes an issue where a variable is used undeclared, which can cause seg faults on some systems if the configuration file is not formatted properly.
Signed-off-by Allan Wirth <[email protected]>
Thanks, applied now.
Takashi
Quoted 17 lines
src/conf.c +1
-1@@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_tif (err <0 ) goto _err; } - }else if (config_file_open (root, fi[idx].name) <0 ) + }else if ((err =config_file_open (root, fi[idx].name)) <0 ) goto _err; } *dst =NULL ;Signature · 1 line
1.7.10.4