summaryrefslogtreecommitdiffstats
path: root/src/util/profile
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-08-19 21:04:56 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-08-19 21:04:56 +0000
commitcd7cbffb667fb399cb0ffc9f50d884121651c4da (patch)
tree686f7d1e71946221670109a8ca34037a9ce19c3d /src/util/profile
parent453d760c55ca89741adb89272c704e478edd36a8 (diff)
downloadkrb5-cd7cbffb667fb399cb0ffc9f50d884121651c4da.tar.gz
krb5-cd7cbffb667fb399cb0ffc9f50d884121651c4da.tar.xz
krb5-cd7cbffb667fb399cb0ffc9f50d884121651c4da.zip
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
Diffstat (limited to 'src/util/profile')
-rw-r--r--src/util/profile/prof_parse.c2
1 files changed, 1 insertions, 1 deletions
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;