summaryrefslogtreecommitdiff
path: root/x2p/str.c
diff options
context:
space:
mode:
Diffstat (limited to 'x2p/str.c')
-rw-r--r--x2p/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x2p/str.c b/x2p/str.c
index 310bcd6e3b..0587205270 100644
--- a/x2p/str.c
+++ b/x2p/str.c
@@ -221,7 +221,7 @@ str_replace(register STR *str, register STR *nstr)
str->str_len = nstr->str_len;
str->str_cur = nstr->str_cur;
str->str_pok = nstr->str_pok;
- if (str->str_nok = nstr->str_nok)
+ if ((str->str_nok = nstr->str_nok))
str->str_nval = nstr->str_nval;
safefree((char*)nstr);
}