aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index 29b6ecf..6d7e3e9 100644
--- a/pw.c
+++ b/pw.c
@@ -1158,7 +1158,7 @@ int main(int argc, char **argv)
grep *gr = malloc(sizeof *gr);
regfree(&regex);
regcomp(&gr->rx, pat, regex_flags | REG_NOSUB);
- gr->pat = dsdup(pat);
+ gr->pat = dsref(pat);
gr->inv = inv;
triglist[trig] = gr;
}