Fixed a crash in cConfig::Load() when compiling on the PPC

This commit is contained in:
Klaus Schmidinger 2005-10-01 10:43:01 +02:00
parent 13f68c4787
commit f3c99e697f
3 changed files with 5 additions and 2 deletions

View File

@ -791,6 +791,7 @@ Sascha Volkenandt <sascha@akv-soft.de>
for reporting a bug in timeout handling in cRwLock::Lock()
for pointing out that the SVDRP command DELR deleted recordings that are currently
being written to by a timer
for fixing a crash in cConfig::Load() when compiling on the PPC
Malcolm Caldwell <malcolm.caldwell@ntu.edu.au>
for modifying LOF handling to allow for C-band reception

View File

@ -3860,3 +3860,5 @@ Video Disk Recorder Revision History
from a subfolder.
- Fixed handling the '.update' file in case the video directory is not at the default
location (reported by Jon Burgess).
- Fixed a crash in cConfig::Load() when compiling on the PPC (thanks to Sascha
Volkenandt).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: config.h 1.229 2005/09/26 21:40:16 kls Exp $
* $Id: config.h 1.230 2005/10/01 10:41:33 kls Exp $
*/
#ifndef __CONFIG_H
@ -91,7 +91,7 @@ public:
const char *FileName(void) { return fileName; }
bool Load(const char *FileName = NULL, bool AllowComments = false, bool MustExist = false)
{
Clear();
cConfig<T>::Clear();
if (FileName) {
free(fileName);
fileName = strdup(FileName);