summaryrefslogtreecommitdiff
path: root/src/nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nl.c')
-rw-r--r--src/nl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nl.c b/src/nl.c
index b276f0935..9696526a2 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -27,6 +27,7 @@
#include <regex.h>
+#include "die.h"
#include "error.h"
#include "fadvise.h"
#include "linebuffer.h"
@@ -352,7 +353,7 @@ proc_text (void)
0, line_buf.length - 1, NULL))
{
case -2:
- error (EXIT_FAILURE, errno, _("error in regular expression search"));
+ die (EXIT_FAILURE, errno, _("error in regular expression search"));
case -1:
fputs (print_no_line_fmt, stdout);