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
bf151581
Commit
bf151581
authored
Aug 19, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module_gettext: return "" on NULL, fixes a segmentation fault
There still are some formatting issues (e.g. --cdda-track)
parent
e756f132
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/modules/modules.c
src/modules/modules.c
+1
-1
No files found.
src/modules/modules.c
View file @
bf151581
...
...
@@ -301,7 +301,7 @@ const char *module_gettext (const module_t *m, const char *str)
{
#ifdef ENABLE_NLS
const
char
*
domain
=
m
->
domain
?
m
->
domain
:
PACKAGE_NAME
;
if
(
unlikely
(
!*
str
))
if
(
unlikely
(
str
==
NULL
||
*
str
==
'\0'
))
return
""
;
return
dgettext
(
domain
,
str
);
#else
...
...
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