diff options
author | Matt Turner <mattst88@gmail.com> | 2010-06-10 04:08:54 +0700 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-06-11 19:05:46 +0700 |
commit | f4190feb25ecc3d8278decc8bf28a5ef0e568942 (patch) | |
tree | 1bda33d8d65126f4a7d2a53f6efdb69e4a426e1d /hw/xwin/InitOutput.c | |
parent | 89bd05106e5823fc5cfca9abf082729f2444363b (diff) |
Remove more superfluous if(p) checks around free(p)
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Diffstat (limited to 'hw/xwin/InitOutput.c')
-rw-r--r-- | hw/xwin/InitOutput.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index 1b976061c..73cc263bd 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -275,11 +275,8 @@ ddxGiveUp (void) } /* Free concatenated command line */ - if (g_pszCommandLine) - { - free (g_pszCommandLine); - g_pszCommandLine = NULL; - } + free(g_pszCommandLine); + g_pszCommandLine = NULL; /* Remove our keyboard hook if it is installed */ winRemoveKeyboardHookLL (); |