changeset 2270:1d4b38ae5f1b libavformat

remove useless check
author benoit
date Wed, 18 Jul 2007 11:56:36 +0000
parents dfccc156e185
children ab05e25d2df2
files os_support.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.c	Wed Jul 18 07:57:26 2007 +0000
+++ b/os_support.c	Wed Jul 18 11:56:36 2007 +0000
@@ -46,13 +46,13 @@
 
     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;