Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
6297d2bd
Commit
6297d2bd
authored
May 06, 2020
by
rswindell
Browse files
Resolve GCC warning: suggest parentheses around '&&' within '||'
parent
b0152254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/qwktomsg.cpp
src/sbbs3/qwktomsg.cpp
+2
-2
No files found.
src/sbbs3/qwktomsg.cpp
View file @
6297d2bd
...
...
@@ -489,9 +489,9 @@ bool sbbs_t::qwk_import_msg(FILE *qwk_fp, char *hdrblk, ulong blocks
if
(
msg
->
ftn_charset
==
NULL
)
{
if
(
!
(
msg
->
hdr
.
auxattr
&
MSG_HFIELDS_UTF8
)
&&
(
msg
->
to
!=
NULL
&&
!
str_is_ascii
(
msg
->
to
)
&&
utf8_str_is_valid
(
msg
->
to
))
&&
(
(
msg
->
to
!=
NULL
&&
!
str_is_ascii
(
msg
->
to
)
&&
utf8_str_is_valid
(
msg
->
to
))
||
(
msg
->
from
!=
NULL
&&
!
str_is_ascii
(
msg
->
from
)
&&
utf8_str_is_valid
(
msg
->
from
))
||
(
msg
->
subj
!=
NULL
&&
!
str_is_ascii
(
msg
->
subj
)
&&
utf8_str_is_valid
(
msg
->
subj
)))
||
(
msg
->
subj
!=
NULL
&&
!
str_is_ascii
(
msg
->
subj
)
&&
utf8_str_is_valid
(
msg
->
subj
)))
)
msg
->
hdr
.
auxattr
|=
MSG_HFIELDS_UTF8
;
if
(
!
(
msg
->
hdr
.
auxattr
&
MSG_HFIELDS_UTF8
)
&&
!
str_is_ascii
(
body
)
&&
utf8_str_is_valid
(
body
))
msg
->
hdr
.
auxattr
|=
MSG_HFIELDS_UTF8
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment