Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e312e210
Commit
e312e210
authored
Nov 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http_auth: remove useless predicate
Ternary: a ? b : b
parent
2e8ae8bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/misc/http_auth.c
src/misc/http_auth.c
+3
-4
No files found.
src/misc/http_auth.c
View file @
e312e210
...
...
@@ -436,7 +436,7 @@ char *http_auth_FormatAuthorizationHeader(
"%s%s%s"
/* cnonce */
"%s%s%s"
/* opaque */
"%s%s%s"
/* message qop */
"%s
%08x%s
"
,
/* nonce count */
"%s
=
\"
%08x
\"
"
,
/* nonce count */
/* Mandatory parameters */
psz_username
,
p_auth
->
psz_realm
,
...
...
@@ -457,9 +457,8 @@ char *http_auth_FormatAuthorizationHeader(
p_auth
->
psz_qop
?
p_auth
->
psz_qop
:
""
,
p_auth
->
psz_qop
?
"
\"
, "
:
""
,
/* "uglyhack" will be parsed as an unhandled extension */
p_auth
->
i_nonce
?
"nc=
\"
"
:
"uglyhack=
\"
"
,
p_auth
->
i_nonce
,
p_auth
->
i_nonce
?
"
\"
"
:
"
\"
"
p_auth
->
i_nonce
?
"nc"
:
"uglyhack"
,
p_auth
->
i_nonce
);
if
(
i_rc
<
0
)
goto
error
;
...
...
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