* mu.cc: don't print anything if *err == NULL

This commit is contained in:
djcb 2012-12-23 14:17:50 +02:00
parent 9eb628fcb6
commit 891f107948
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ show_version (void)
static void
handle_error (MuConfig *conf, MuError merr, GError **err)
{
if (merr != MU_OK && !(err && *err)) {
g_printerr ("mu: something went wrong\n");
return;
} else if (!(err && *err))
if (!(err && *err))
return;
switch ((*err)->code) {