[PATCH 3/3] Replace xstrdup with strdup
Mikhail Gusarov
dottedmag at dottedmag.net
Tue May 18 10:41:03 PDT 2010
It is not possible for argument to be NULL here, it'd fall into branch above
Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
---
dix/dixfonts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dix/dixfonts.c b/dix/dixfonts.c
index 585754b..a7cf728 100644
--- a/dix/dixfonts.c
+++ b/dix/dixfonts.c
@@ -1841,7 +1841,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;
--
1.7.1
More information about the xorg-devel
mailing list