Commit 129673d2 authored by Martyn Russell's avatar Martyn Russell

tracker-extract: Don't error on HAL == NULL if run on command line

parent a636b15c
......@@ -780,11 +780,15 @@ albumart_copy_to_local (TrackerStorage *hal,
gboolean on_removable_device = FALSE;
guint flen;
flen = strlen (filename);
/* Determining if we are on a removable device */
#ifdef HAVE_HAL
g_return_if_fail (hal != NULL);
if (!hal) {
/* This is usually because we are running on the
* command line, so we don't error here with
* g_return_if_fail().
*/
return;
}
removable_roots = tracker_storage_get_removable_device_roots (hal);
#else
......@@ -792,6 +796,8 @@ albumart_copy_to_local (TrackerStorage *hal,
removable_roots = g_list_append (removable_roots, "/mnt");
#endif
flen = strlen (filename);
for (l = removable_roots; l; l = l->next) {
guint len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment