1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 04:06:03 +00:00

Minor cleanups.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@465 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Roman Bogorodskiy 2006-01-05 10:01:46 +00:00
parent 3e3c686c7b
commit 1804edb536

View File

@ -16,7 +16,7 @@
static DBusGConnection *bus;
static DBusGProxy *remote_object;
static int connected = 0;
char unknown[8];
static char *unknown = "unknown";
void update_bmpx()
{
@ -79,7 +79,8 @@ void update_bmpx()
g_hash_table_destroy(metadata);
} else {
fail:
strcpy(unknown, "Unknown");
if (error)
g_error_free(error);
current_info->bmpx.title = unknown;
current_info->bmpx.artist = unknown;
current_info->bmpx.album = unknown;
@ -87,4 +88,3 @@ fail:
current_info->bmpx.track = 0;
}
}