X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/e5fa9ca748b73c6008754ce2c48e9a85a78a1f17..2c0de0824e7a962fe0bff05972629781cec3fd68:/src/gui/lbxgui.c diff --git a/src/gui/lbxgui.c b/src/gui/lbxgui.c index 7eed44f..e230d6f 100644 --- a/src/gui/lbxgui.c +++ b/src/gui/lbxgui.c @@ -331,8 +331,7 @@ static int load_archive(const char *path) -1); g_free(basename); - nfiles = lbx_numfiles(lbx); - for (unsigned i = 0; i < nfiles; i++) { + for (unsigned i = 0; i < lbx->nfiles; i++) { struct lbx_statbuf stat; lbx_file_stat(lbx, i, &stat);