From: Alexandra Ellwood Date: Tue, 19 Aug 2008 21:04:56 +0000 (+0000) Subject: profile write code should only quote empty strings X-Git-Tag: krb5-1.7-alpha1~475 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd7cbffb667fb399cb0ffc9f50d884121651c4da;p=krb5.git 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 --- 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;