diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-04 17:01:05 +0700 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-11 19:04:23 +0700 |
commit | eea286f2b9e4b1acf2b1c9800f5a4bc7c3fa968d (patch) | |
tree | daacd41218387f2853ed0557ab9bfdda80e28eec /hw/xwin/InitOutput.c | |
parent | dd45b7d74696cd4fe9545852640a3c2e66a808fd (diff) |
xwin: Get rid of xstrdup when argument is definitely non-NULL
ditto for XWin
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'hw/xwin/InitOutput.c')
-rw-r--r-- | hw/xwin/InitOutput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index 1ab059f72..1b976061c 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -441,7 +441,7 @@ winFixupPaths (void) int comment_block = FALSE; /* get defautl fontpath */ - char *fontpath = xstrdup(defaultFontPath); + char *fontpath = strdup(defaultFontPath); size_t size = strlen(fontpath); /* read all lines */ @@ -528,7 +528,7 @@ winFixupPaths (void) /* cleanup */ fclose(fontdirs); - defaultFontPath = xstrdup(fontpath); + defaultFontPath = strdup(fontpath); free(fontpath); changed_fontpath = TRUE; font_from = X_CONFIG; @@ -600,7 +600,7 @@ winFixupPaths (void) } } - defaultFontPath = xstrdup(newfp); + defaultFontPath = strdup(newfp); free(newfp); changed_fontpath = TRUE; } |