summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-11-06 11:54:52 -0500
committerCraig A. Berry <craigberry@mac.com>2010-11-06 11:54:52 -0500
commit9960802c2b6f4b61c0c7ce718f3ce247a3a13bf1 (patch)
treee9af7e3b5b2c2fb4e1dc532d3221071f911cf6ad /vms
parent27df23140def00922ce186da623f2c3724e0b36a (diff)
downloadperl-9960802c2b6f4b61c0c7ce718f3ce247a3a13bf1.tar.gz
RT 78836: vms/vms.c: dubious expressions
I noticed two dubious expressions that look as if they were intended to be assignments. The comment above the code says it's broken.
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 9ca1e96b21..780187347b 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -655,8 +655,8 @@ int scnt;
if (scnt == 4) {
unsigned int c1, c2;
scnt = sscanf(inspec, "%2x%2x", &c1, &c2);
- outspec[0] == c1 & 0xff;
- outspec[1] == c2 & 0xff;
+ outspec[0] = c1 & 0xff;
+ outspec[1] = c2 & 0xff;
if (scnt > 1) {
(*output_cnt) += 2;
count += 4;