card-restore: Handle reading NULL profile name from the database.
authorTanu Kaskinen <tanuk@iki.fi>
Sat, 30 Jun 2012 10:00:25 +0000 (13:00 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 6 Jul 2012 09:47:48 +0000 (12:47 +0300)
commitcec6b153b7803ccc5bab812638a01dce0def312a
treed6930f615ac3c53bb0608d3349612da52759bd61
parent758e5bc28ef4eb29c43570da0a6f296e13515630
card-restore: Handle reading NULL profile name from the database.

It's assumed in a couple of places that entry_read()
initializes entry->profile to a non-NULL string. This patch
makes those assumptions hold.

Tested-by: Mikel Astiz <mikel.astiz.oss@gmail.com>
src/modules/module-card-restore.c