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
4b4d2494
Commit
4b4d2494
authored
Apr 19, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"strlen( psz ) == 0" => "*psz == '\0'"
parent
61f59e92
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
modules/access/bda/bdagraph.cpp
modules/access/bda/bdagraph.cpp
+2
-2
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+1
-1
modules/demux/subtitle.c
modules/demux/subtitle.c
+1
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-1
modules/stream_out/raop.c
modules/stream_out/raop.c
+1
-1
No files found.
modules/access/bda/bdagraph.cpp
View file @
4b4d2494
...
...
@@ -911,7 +911,7 @@ HRESULT BDAGraph::CreateTuneRequest()
/* Test for a specific Tuning space name supplied on the command
* line as dvb-networkname=xxx */
if
(
strlen
(
l
.
psz_network_name
)
==
0
||
if
(
*
l
.
psz_network_name
==
'\0'
||
strcmp
(
l
.
psz_network_name
,
l
.
psz_bstr_name
)
==
0
)
{
msg_Dbg
(
p_access
,
"CreateTuneRequest: Using Tuning Space: %s"
,
...
...
@@ -1001,7 +1001,7 @@ HRESULT BDAGraph::CreateTuneRequest()
l
.
psz_bstr_name
=
new
char
[
l
.
i_name_len
];
l
.
i_name_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
l
.
bstr_name
,
-
1
,
l
.
psz_bstr_name
,
l
.
i_name_len
,
NULL
,
NULL
);
if
(
strlen
(
l
.
psz_network_name
)
==
0
||
if
(
*
l
.
psz_network_name
==
'\0'
||
strcmp
(
l
.
psz_network_name
,
l
.
psz_bstr_name
)
==
0
)
{
msg_Dbg
(
p_access
,
"CreateTuneRequest: Using Tuning Space: %s"
,
...
...
modules/demux/mp4/libmp4.c
View file @
4b4d2494
...
...
@@ -3084,7 +3084,7 @@ static void __MP4_BoxGet( MP4_Box_t **pp_result,
}
}
else
if
(
strlen
(
psz_token
)
==
0
)
if
(
*
psz_token
==
'\0'
)
{
p_box
=
p_box
->
p_first
;
for
(
;
;
)
...
...
modules/demux/subtitle.c
View file @
4b4d2494
...
...
@@ -1855,7 +1855,7 @@ static int ParsePSB( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
static
int64_t
ParseRealTime
(
char
*
psz
,
int
*
h
,
int
*
m
,
int
*
s
,
int
*
f
)
{
if
(
strlen
(
psz
)
==
0
)
return
0
;
if
(
*
psz
==
'\0'
)
return
0
;
if
(
sscanf
(
psz
,
"%d:%d:%d.%d"
,
h
,
m
,
s
,
f
)
==
4
||
sscanf
(
psz
,
"%d:%d.%d"
,
m
,
s
,
f
)
==
3
||
sscanf
(
psz
,
"%d.%d"
,
s
,
f
)
==
2
||
...
...
modules/gui/ncurses.c
View file @
4b4d2494
...
...
@@ -2166,7 +2166,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
DrawEmptyLine
(
p_sys
->
w
,
7
,
1
,
COLS
-
2
);
if
(
p_sys
->
psz_search_chain
)
{
if
(
strlen
(
p_sys
->
psz_search_chain
)
==
0
&&
if
(
*
p_sys
->
psz_search_chain
==
'\0'
&&
p_sys
->
psz_old_search
!=
NULL
)
{
/* Searching next entry */
...
...
modules/stream_out/raop.c
View file @
4b4d2494
...
...
@@ -577,7 +577,7 @@ static char *ReadPasswordFile( vlc_object_t *p_this, const char *psz_path )
*
psz_newline
=
'\0'
;
}
if
(
strlen
(
ps_buffer
)
==
0
)
{
if
(
*
ps_buffer
==
'\0'
)
{
msg_Err
(
p_this
,
"No password could be read from '%s'"
,
psz_path
);
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