From ae02e76a85a913ce0d45b9cb376807f130bc55a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 27 Mar 2010 05:45:31 +0000 Subject: [PATCH] Fix ''scheduled for recording by "Auto recording by: (null)"'' -uglyness --- src/dvr/dvr_db.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index 5bee340e..3a8ec5c5 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -313,7 +313,11 @@ dvr_entry_create_by_autorec(event_t *e, dvr_autorec_entry_t *dae) { char buf[200]; - snprintf(buf, sizeof(buf), "Auto recording by: %s", dae->dae_creator); + if(dae->dae_creator) { + snprintf(buf, sizeof(buf), "Auto recording by: %s", dae->dae_creator); + } else { + snprintf(buf, sizeof(buf), "Auto recording"); + } dvr_entry_create_by_event(e, buf, dae, dae->dae_pri); }