Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8402ed45
Commit
8402ed45
authored
May 24, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios dialog provider: fix insufficient nil checks
parent
dadda229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/ios_dialog_provider/dialogProvider.m
modules/gui/ios_dialog_provider/dialogProvider.m
+6
-2
No files found.
modules/gui/ios_dialog_provider/dialogProvider.m
View file @
8402ed45
...
...
@@ -200,8 +200,12 @@ static int DisplayLogin(vlc_object_t *p_this, const char *type, vlc_value_t prev
intf_sys_t
*
sys
=
p_intf
->
p_sys
;
NSDictionary
*
dict
=
[
sys
->
displayer
displayLogin
:
DictFromDialogLogin
(
dialog
)];
if
(
dict
)
{
*
dialog
->
username
=
strdup
([[
dict
objectForKey
:
@"username"
]
UTF8String
]);
*
dialog
->
password
=
strdup
([[
dict
objectForKey
:
@"password"
]
UTF8String
]);
NSString
*
username
=
[
dict
objectForKey
:
@"username"
];
if
(
username
!=
NULL
&&
username
.
length
>
0
)
*
dialog
->
username
=
strdup
([
username
UTF8String
]);
NSString
*
password
=
[
dict
objectForKey
:
@"password"
];
if
(
password
!=
NULL
&&
password
.
length
>
0
)
*
dialog
->
password
=
strdup
([
password
UTF8String
]);
}
[
pool
release
];
return
VLC_SUCCESS
;
...
...
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