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
f4753d2f
Commit
f4753d2f
authored
Mar 29, 2022
by
Rob Swindell
💬
Browse files
Use the pointer *after* checking that its not NULL
Fixes CID 351271
parent
557049bf
Pipeline
#2949
failed with stage
in 9 minutes and 56 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/xpdev/dirwrap.c
src/xpdev/dirwrap.c
+2
-1
No files found.
src/xpdev/dirwrap.c
View file @
f4753d2f
...
...
@@ -314,9 +314,10 @@ int globi(const char *p, int flags,
{
char
pattern
[
MAX_PATH
*
2
]
=
""
;
int
len
=
0
;
char
*
fname
=
getfname
(
p
)
;
char
*
fname
;
if
(
p
!=
NULL
)
{
fname
=
getfname
(
p
);
while
(
*
p
!=
'\0'
&&
len
<
MAX_PATH
)
{
if
(
p
>=
fname
&&
IS_ALPHA
(
*
p
))
len
+=
sprintf
(
pattern
+
len
,
"[%c%c]"
,
toupper
(
*
p
),
tolower
(
*
p
));
...
...
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