diff --git a/config.c b/config.c
index 146a88702f248177173a3fcf3fe45d9f1448a505..5840e30c9f5565e5903213abe43e16122a84c122 100644
--- a/config.c
+++ b/config.c
@@ -440,9 +440,8 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
 		while(*c && (*c > 32)) c++;
 		if (*c) {
 			*c = '\0';
-			c++;
 			/* Find real argument */
-			while(*c  && (*c < 33)) c++;
+			c = ast_skip_blanks(c + 1);
 			if (!*c)
 				c = NULL;
 		} else