summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-11-06 11:54:52 -0500
committerCraig A. Berry <craigberry@mac.com>2011-01-01 03:59:36 -0600
commitc97fc85f0db7ea78900f4f861f778f3d933226d7 (patch)
tree288f5af7e66c07443996adfaf30e8574f4ef759b
parent5e7d60de18218a624f7f6d5c99bdaf0ff03973df (diff)
downloadperl-c97fc85f0db7ea78900f4f861f778f3d933226d7.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.
-rw-r--r--vms/vms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vms/vms.c b/vms/vms.c
index db686d2009..18ce85ed35 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;