Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gary Wang
VLC
Commits
3ab2f937
Commit
3ab2f937
authored
13 years ago
by
Rafaël Carré
Browse files
Options
Downloads
Patches
Plain Diff
FromLocaleDup(): accept NULL input (and return NULL)
parent
6ab3cbf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text/unicode.c
+3
-0
3 additions, 0 deletions
src/text/unicode.c
with
3 additions
and
0 deletions
src/text/unicode.c
+
3
−
0
View file @
3ab2f937
...
...
@@ -90,6 +90,9 @@ char *FromLocale (const char *locale)
*/
char
*
FromLocaleDup
(
const
char
*
locale
)
{
if
(
!
locale
)
return
NULL
;
#ifdef ASSUME_UTF8
return
strdup
(
locale
);
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment