~vanvugt/+junk/mediatomb

« back to all changes in this revision

Viewing changes to tombupnp/upnp/src/api/upnpdebug.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-02-22 20:16:31 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100222201631-fgwswo4s4ogdr8x8
Tags: 0.12.0~svn2018-6ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - Add OR depends on abrowser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
static FILE *InfoFileHnd = NULL;
63
63
 
64
64
//Name of the error file
65
 
static const char *errFileName = "IUpnpErrFile.txt";
 
65
static const char *errFileName = NULL;
66
66
 
67
67
//Name of the info file
68
 
static const char *infoFileName = "IUpnpInfoFile.txt";
 
68
static const char *infoFileName = NULL;
69
69
 
70
70
 
71
71
 
113
113
    ithread_mutex_init( &GlobalDebugMutex, NULL );
114
114
 
115
115
    if( DEBUG_TARGET == 1 ) {
 
116
        errFileName = tempnam(NULL,NULL);
 
117
        infoFileName = tempnam(NULL,NULL);
116
118
        if( ( ErrFileHnd = fopen( errFileName, "a" ) ) == NULL )
117
119
            return -1;
118
120
        if( ( InfoFileHnd = fopen( infoFileName, "a" ) ) == NULL )