Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
9ff4e8e7
Commit
9ff4e8e7
authored
Nov 22, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix compiler warning
- Fix directory separator on Windows - Some cleanup
parent
d5caf653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
modules/misc/gnutls.c
modules/misc/gnutls.c
+9
-13
No files found.
modules/misc/gnutls.c
View file @
9ff4e8e7
...
@@ -466,7 +466,6 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
...
@@ -466,7 +466,6 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
vlc_bool_t
b_priv
)
vlc_bool_t
b_priv
)
{
{
DIR
*
dir
;
DIR
*
dir
;
const
char
*
psz_dirent
;
if
(
*
psz_dirname
==
'\0'
)
if
(
*
psz_dirname
==
'\0'
)
psz_dirname
=
"."
;
psz_dirname
=
"."
;
...
@@ -499,23 +498,20 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
...
@@ -499,23 +498,20 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
}
}
#endif
#endif
while
(
(
psz_dirent
=
utf8_readdir
(
dir
)
)
!=
NULL
)
for
(;;
)
{
{
char
*
psz_filename
;
char
*
ent
=
utf8_readdir
(
dir
);
int
check
;
if
(
ent
==
NULL
)
break
;
if
(
(
psz_dirent
==
NULL
)
if
((
strcmp
(
ent
,
"."
)
==
0
)
||
(
strcmp
(
ent
,
".."
)
==
0
))
||
(
strcmp
(
"."
,
psz_dirent
)
==
0
)
||
(
strcmp
(
".."
,
psz_dirent
)
==
0
)
)
continue
;
continue
;
check
=
asprintf
(
&
psz_filename
,
"%s/%s"
,
psz_dirname
,
psz_dirent
);
char
path
[
strlen
(
psz_dirname
)
+
strlen
(
ent
)
+
2
];
free
(
psz_dirent
);
sprintf
(
path
,
"%s"
DIR_SEP
"%s"
,
psz_dirname
,
ent
);
if
(
check
==
-
1
)
free
(
ent
);
continue
;
gnutls_Addx509File
(
p_this
,
cred
,
psz_filename
,
b_priv
);
gnutls_Addx509File
(
p_this
,
cred
,
path
,
b_priv
);
free
(
psz_filename
);
}
}
closedir
(
dir
);
closedir
(
dir
);
...
...
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