mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Removed some unnecessary null-checks for calls to g_free and g_strfreev
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user