diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-11-06 11:54:52 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2011-01-01 03:59:36 -0600 |
commit | c97fc85f0db7ea78900f4f861f778f3d933226d7 (patch) | |
tree | 288f5af7e66c07443996adfaf30e8574f4ef759b | |
parent | 5e7d60de18218a624f7f6d5c99bdaf0ff03973df (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |