• R/O
  • HTTP
  • SSH
  • HTTPS

timidity41: Commit


Commit MetaInfo

Révisionff1845f4b0feee014a1bc7ad1ad653de3302ee87 (tree)
l'heure2019-11-09 23:11:24
AuteurStarg <starg@user...>
CommiterStarg

Message de Log

Fix potentially uninitialized variables

Change Summary

Modification

--- a/interface/w32g_i.c
+++ b/interface/w32g_i.c
@@ -1725,7 +1725,7 @@ void MainWndUpdateSoundSpecButton(void)
17251725 #undef SUBWINDOW_POS_IS_OLD_CLOSED_WINDOW
17261726 void ShowSubWindow(HWND hwnd,int showflag)
17271727 {
1728- int i, num;
1728+ int i, num = 0;
17291729 RECT rc;
17301730 #ifdef SUBWINDOW_POS_IS_OLD_CLOSED_WINDOW
17311731 RECT rc2;
--- a/libarc/url_file.c
+++ b/libarc/url_file.c
@@ -221,7 +221,7 @@ URL url_file_open(const char *fname)
221221 ptr_size_t mapsize;
222222 FILE *fp; /* Non NULL if mmap is failure */
223223 #ifdef __W32__
224- HANDLE hFile, hMap;
224+ HANDLE hFile = INVALID_HANDLE_VALUE, hMap = 0;
225225 #endif /* __W32__ */
226226
227227 #ifdef DEBUG
--- a/timidity/effect.c
+++ b/timidity/effect.c
@@ -24508,7 +24508,7 @@ const int8 cab_type_xg[] = {0, 1, 2, 3, 3, 1, 1};
2450824508
2450924509 static double ins_xg_revchar_to_roomsize(struct effect_xg_t *st)
2451024510 {
24511- double rs;
24511+ double rs = 1.0;
2451224512 switch(st->type_msb) {
2451324513 case 0x01:
2451424514 switch(st->type_lsb) {
@@ -24562,7 +24562,7 @@ static double ins_xg_revchar_to_roomsize(struct effect_xg_t *st)
2456224562
2456324563 static double ins_xg_revchar_to_level(struct effect_xg_t *st)
2456424564 {
24565- double level;
24565+ double level = 1.0;
2456624566 switch(st->type_msb) {
2456724567 case 0x01:
2456824568 switch(st->type_lsb) {
@@ -24905,7 +24905,7 @@ static void conv_xg_reverb1(struct effect_xg_t *st, EffectList *ef)
2490524905 rvb->rev_wet = ins_xg_revchar_to_level(st);
2490624906 rvb->rev_width = initialwidth;
2490724907 }else{ // StandardReverb
24908- int type;
24908+ int type = 0;
2490924909 if(st->connection == XG_CONN_SYSTEM_REVERB){
2491024910 rvb0->mode = CH_STEREO;
2491124911 }else{
@@ -33574,7 +33574,7 @@ static void conv_sd_reverb2(struct mfx_effect_sd_t *st, EffectList *ef)
3357433574 rvb->rev_level = 0.55;
3357533575 rvb->rev_dif = 1.0;
3357633576 }else{ // StandardReverb
33577- int type;
33577+ int type = 0;
3357833578 info->rev_type = 0;
3357933579 rvb3->mode = CH_STEREO;
3358033580 switch(*reverb_status_sd.type) {
--- a/timidity/int_synth.c
+++ b/timidity/int_synth.c
@@ -3607,6 +3607,7 @@ static void mms_editor_save_ini(int num)
36073607 }
36083608 // mode
36093609 snprintf(key, sizeof(key), "op_%d_mode", j);
3610+ flg = 0;
36103611 if(setting->op_mode[j][0] > 0){
36113612 memset(data, 0, sizeof(data));
36123613 for(i = 0; i < MMS_OP_MODE_MAX; i++){
Afficher sur ancien navigateur de dépôt.