Skip to content

Commit

Permalink
Fix uninitialized-variable error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Plotkin authored and Andrew Plotkin committed Apr 12, 2022
1 parent a9e6575 commit 519cdf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dialog.js
Expand Up @@ -737,6 +737,8 @@ function evhan_storage_changed(ev) {
return false;
}

var ix, file;

cur_filelist = [];
lastusage = '';
for (ix=0; ix<ls.length; ix++) {
Expand All @@ -753,7 +755,7 @@ function evhan_storage_changed(ev) {

var selel = $('<select>', { id: dialog_el_id+'_select', name:'files' });
selel.prop('size', '5'); /* firefox doesn't like this being set in the constructor */
var ix, file, datestr;
var datestr;
var anyselected = false;
for (ix=0; ix<ls.length; ix++) {
file = ls[ix];
Expand Down

0 comments on commit 519cdf7

Please sign in to comment.