]> git.webhop.me Git - shellexec.git/commitdiff
shellexec.c: fix uninitialized variable
authorThilo Graf <dbt@novatux.de>
Wed, 7 Mar 2018 21:10:20 +0000 (22:10 +0100)
committerThilo Graf <dbt@novatux.de>
Thu, 8 Mar 2018 14:46:10 +0000 (15:46 +0100)
shellexec.c

index 28b238b907faa10c92b70626305c2a654a868b90..237f02cc33fae7a9ce3ea215a28fed0d911cc057 100644 (file)
@@ -1374,7 +1374,7 @@ static void ShowInfo(MENU *m, int knew )
                RenderBox(ixw-sbw + sbo, moffs + scrollbar_ofs + sbo, ixw - sbo, moffs + scrollbar_ofs + scrollbar_cor - sbo, radius, COL_MENUCONTENT_PLUS_3);
        }
        int iw,ih;
-       int offset, hoffs = (m->headermed[m->act_header]==1)?0:scale2res(48);
+       int offset = 0, hoffs = (m->headermed[m->act_header]==1)?0:scale2res(48);
        int ioffs = xoffs+8; // + half standard icon
        if(m->icon[m->act_header])
        {