Skip to content

Commit

Permalink
released 3.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-van-Engelen committed Dec 4, 2020
1 parent 117c3e1 commit 870c6fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ To build `ugrep` with specific hard defaults enabled, such as a pager:
$ cd ugrep
$ ./build.sh --enable-pager

Options to select build defaults include:
Options to select defaults for builds include:

- `--enable-hidden` search hidden files and directories
- `--enable-pager` use a pager to display output on terminals
Expand Down
Binary file modified bin/win32/ugrep.exe
Binary file not shown.
Binary file modified bin/win64/ugrep.exe
Binary file not shown.
14 changes: 7 additions & 7 deletions src/ugrep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ After this, you may want to test ugrep and install it (optional):
*/

// ugrep version
#define UGREP_VERSION "3.0.5"
#define UGREP_VERSION "3.0.6"

// disable mmap because mmap is almost always slower than the file reading speed improvements since 3.0.0
#define WITH_NO_MMAP
Expand Down Expand Up @@ -3545,6 +3545,9 @@ static void load_config()
++lineno;
}

if (ferror(file))
error("error while reading", flag_config_file.c_str());

if (file != stdin)
fclose(file);

Expand All @@ -3554,9 +3557,6 @@ static void load_config()

exit(EXIT_ERROR);
}

if (ferror(file))
error("error while reading", flag_config_file.c_str());
}
else if (flag_config != NULL && *flag_config != '\0')
{
Expand Down Expand Up @@ -3649,11 +3649,11 @@ static void save_config()

fprintf(file, "# Enable/disable sorted output, default: no-sort\n%s\n\n", flag_sort != NULL ? flag_sort : "no-sort");

if (file != stdout)
fclose(file);

if (ferror(file))
error("cannot save", flag_save_config);

if (file != stdout)
fclose(file);
}

// parse the command-line options
Expand Down

0 comments on commit 870c6fd

Please sign in to comment.