summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-23 21:47:30 +0100
committerDan McGee <dan@archlinux.org>2011-12-23 21:47:30 +0100
commitc34b69b5c7aa86fe76f90577195d13bbcf300658 (patch)
tree271af389aea6956a92c460f8424b5d629011a025 /src/pacman/conf.c
parent38143770a9a1b4b88503fc7b1b9098a5957e0f4e (diff)
downloadpacman-c34b69b5c7aa86fe76f90577195d13bbcf300658.tar.gz
pacman-c34b69b5c7aa86fe76f90577195d13bbcf300658.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c3
1 files changed, 1 insertions, 2 deletions
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;