OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba7fe6
)
remove useless check
author
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 18 Jul 2007 11:56:36 +0000
(11:56 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 18 Jul 2007 11:56:36 +0000
(11:56 +0000)
Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/os_support.c
patch
|
blob
|
history
diff --git
a/libavformat/os_support.c
b/libavformat/os_support.c
index
5342a02
..
f1d0e0a
100644
(file)
--- a/
libavformat/os_support.c
+++ b/
libavformat/os_support.c
@@
-46,13
+46,13
@@
int inet_aton (const char * str, struct in_addr * add)
add1 = atoi(pch);
pch = strpbrk(pch,".");
- if (
pch == 0 || ++pch == 0
) return 0;
+ if (
!pch
) return 0;
add2 = atoi(pch);
pch = strpbrk(pch,".");
- if (
pch == 0 || ++pch == 0
) return 0;
+ if (
!pch
) return 0;
add3 = atoi(pch);
pch = strpbrk(pch,".");
- if (
pch == 0 || ++pch == 0
) return 0;
+ if (
!pch
) return 0;
add4 = atoi(pch);
if (!add1 || (add1|add2|add3|add4) > 255) return 0;