Skip to content

Commit

Permalink
Remove legacy_mode clause for checking ImageJ.cfg
Browse files Browse the repository at this point in the history
This seemed like a good idea before there was an existence check for the
Java specified in ImageJ.cfg. Now that we have that check, the legacy
mode requirement was overly conservative and potentially confusing.
  • Loading branch information
hinerm committed Nov 17, 2020
1 parent 55196e1 commit 0c39026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/c/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void parse_legacy_config(struct string *jvm_options)

debug("ImageJ.cfg:%d: %.*s", line, (int)(eol - p), p);

if (line == 2 && legacy_mode) {
if (line == 2) {
int jre_len = -1;
#ifdef WIN32
if (!suffixcmp(p, eol - p, "\\bin\\javaw.exe"))
Expand Down

0 comments on commit 0c39026

Please sign in to comment.