From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4929 invoked by alias); 13 Feb 2012 10:45:27 -0000 Received: (qmail 4911 invoked by uid 9737); 13 Feb 2012 10:45:27 -0000 Date: Mon, 13 Feb 2012 10:45:00 -0000 Message-ID: <20120213104527.4909.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/filters filter.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00064.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2012-02-13 10:45:26 Modified files: lib/filters : filter.c Log message: Remove duplicit test When it's space it's also not a '\0'. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/filters/filter.c.diff?cvsroot=lvm2&r1=1.68&r2=1.69 --- LVM2/lib/filters/filter.c 2012/02/08 12:48:14 1.68 +++ LVM2/lib/filters/filter.c 2012/02/13 10:45:26 1.69 @@ -221,7 +221,7 @@ while (fgets(line, 80, pd) != NULL) { i = 0; - while (line[i] == ' ' && line[i] != '\0') + while (line[i] == ' ') i++; /* If it's not a number it may be name of section */ @@ -238,7 +238,7 @@ /* Find the start of the device major name */ while (line[i] != ' ' && line[i] != '\0') i++; - while (line[i] == ' ' && line[i] != '\0') + while (line[i] == ' ') i++; /* Look for md device */