summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2010-06-04 16:58:58 +0700
committerMikhail Gusarov <dottedmag@dottedmag.net>2010-06-11 19:04:23 +0700
commit6592db6bb526f0c43b4c7b55859c629709e039b4 (patch)
tree30d525b635170a94193c0a8837e1b36b609e757e /dix
parent620ca54aaa0b363fcf68cec1bd6c37e68c988352 (diff)
Get rid of xstrdup when argument is definitely non-NULL
Replace xstrdup with strdup when either constant string is being duplicated or argument is guarded by conditionals and obviously can't be NULL Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/dixfonts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/dixfonts.c b/dix/dixfonts.c
index 6c90fb9d2..b51ad841f 100644
--- a/dix/dixfonts.c
+++ b/dix/dixfonts.c
@@ -1836,7 +1836,7 @@ SetDefaultFontPath(char *path)
if (!start) {
temp_path = Xprintf("%s%sbuilt-ins", path, *path ? "," : "");
} else {
- temp_path = xstrdup(path);
+ temp_path = strdup(path);
}
if (!temp_path)
return BadAlloc;