Removed some unnecessary null-checks for calls to g_free and g_strfreev

This commit is contained in:
Arnavion
2014-12-08 21:24:59 -08:00
parent b7afcc3632
commit 65da34f19e
10 changed files with 48 additions and 91 deletions

View File

@@ -530,8 +530,7 @@ fe_args (int argc, char *argv[])
if (arg_cfgdir) /* we want filesystem encoding */
{
if (xdir)
g_free (xdir);
g_free (xdir);
xdir = strdup (arg_cfgdir);
if (xdir[strlen (xdir) - 1] == '/')
xdir[strlen (xdir) - 1] = 0;