mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix conditional expression: previously a bit vector was being operated
on by a logical not instead of the entire expression. Approved by: cperciva MFC after: 3 days
This commit is contained in:
parent
4e730560e9
commit
d3522c026f
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ setfunc(int memfd, int argc, char *argv[])
|
|||
while(argc--) {
|
||||
for (i = 0; attrnames[i].name != NULL; i++) {
|
||||
if (!strcmp(attrnames[i].name, argv[0])) {
|
||||
if (!attrnames[i].kind & MDF_SETTABLE)
|
||||
if (!(attrnames[i].kind & MDF_SETTABLE))
|
||||
help("flags");
|
||||
mrd.mr_flags |= attrnames[i].val;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue