From cd7cbffb667fb399cb0ffc9f50d884121651c4da Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 19 Aug 2008 21:04:56 +0000 Subject: [PATCH] profile write code should only quote empty strings Assigned to Ken for review. ticket: new owner: raeburn git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20674 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/prof_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c index 665b9d90c..701d5e4a9 100644 --- a/src/util/profile/prof_parse.c +++ b/src/util/profile/prof_parse.c @@ -310,7 +310,7 @@ static int need_double_quotes(char *str) { if (!str) return 0; - if (*str) + if (str[0] == '\0') return 1; if (isspace((int) (*str)) ||isspace((int) (*(str + strlen(str) - 1)))) return 1; -- 2.26.2