1
0
mirror of https://github.com/upx/upx.git synced 2025-08-07 22:46:51 +08:00

src: fix typo in options.cpp

This commit is contained in:
Markus F.X.J. Oberhumer
2022-12-12 05:38:51 +01:00
parent 7256ea3b32
commit 3f460a76ce

View File

@ -57,7 +57,7 @@ void options_t::reset() {
#endif
o->verbose = 2;
opt->o_unix.osabi0 = 3; // 3 == ELFOSABI_LINUX
o->o_unix.osabi0 = 3; // 3 == ELFOSABI_LINUX
o->win32_pe.compress_exports = 1;
o->win32_pe.compress_icons = 2;
@ -76,6 +76,13 @@ options_t *opt = &global_options;
//
**************************************************************************/
TEST_CASE("options_t::reset") {
options_t local_options;
options_t *o = &local_options;
o->reset();
CHECK(o->o_unix.osabi0 == 3);
}
template <size_t N>
static inline void test_options(const char *(&a)[N]) {
(void) main_get_options((int) (N - 1), ACC_UNCONST_CAST(char **, a));