From c34b69b5c7aa86fe76f90577195d13bbcf300658 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 23 Dec 2011 14:47:30 -0600 Subject: Convert strtrim/strlen paired calls to only strtrim This utilizes the new return value so we don't have to find the length of the string again. Signed-off-by: Dan McGee --- src/pacman/conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pacman/conf.c') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 117aecd4..7ba2791c 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -726,8 +726,7 @@ static int _parseconfig(const char *file, struct section_t *section, *ptr = '\0'; } - strtrim(line); - line_len = strlen(line); + line_len = strtrim(line); if(line_len == 0) { continue; -- cgit v1.2.3