summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-03-26 09:27:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-03-26 09:27:30 +0200
commit1fe46dfa9faf971fee27870a49f652485e52647a (patch)
treeb9ab0238825442c042a781ffd5c5d01462fe5f1c /thread.c
parent8a3dae1e8bc3c008abc425c026f1c1bdf1ce026d (diff)
downloadvdr-1fe46dfa9faf971fee27870a49f652485e52647a.tar.gz
vdr-1fe46dfa9faf971fee27870a49f652485e52647a.tar.bz2
Fixed format string handling
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 3293b1d4..89d56e9f 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.53 2006/02/12 12:24:39 kls Exp $
+ * $Id: thread.c 1.54 2006/03/26 09:22:27 kls Exp $
*/
#include "thread.h"
@@ -208,7 +208,8 @@ cThread::cThread(const char *Description)
childTid = 0;
childThreadId = 0;
description = NULL;
- SetDescription(Description);
+ if (Description)
+ SetDescription("%s", Description);
}
cThread::~cThread()