summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 5342a02ed0..f1d0e0a8f1 100644
--- 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;