Index: src/core/download_store.cc
===================================================================
--- src/core/download_store.cc	(revision 559)
+++ src/core/download_store.cc	(working copy)
@@ -53,7 +53,7 @@
 DownloadStore::use(const std::string& path) {
   m_path = path;
 
-  if (*m_path.rbegin() != '/')
+  if (!m_path.empty() && *m_path.rbegin() != '/')
     m_path += '/';
 }
 

