Univention Bugzilla – Attachment 6358 Details for
Bug 36603
univention.debug segfault bei reopen()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
bug36603.patch (text/plain), 1.01 KB, created by
Florian Best
on 2014-11-12 17:03 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2014-11-12 17:03 CET
Size:
1.01 KB
patch
obsolete
>diff --git a/ucs-4.0-0/base/univention-debug/lib/debug.c b/ucs-4.0-0/base/univention-debug/lib/debug.c >index 3429bb4..d81e662 100644 >--- a/ucs-4.0-0/base/univention-debug/lib/debug.c >+++ b/ucs-4.0-0/base/univention-debug/lib/debug.c >@@ -112,10 +112,11 @@ FILE * univention_debug_init(const char *logfile, enum uv_debug_flag_flush flush > if ((univention_debug_file = fopen(logfile, "a+")) == NULL) { > free(univention_debug_level); > univention_debug_level = NULL; >- fprintf(stderr, "Could not open logfile \"%s\"\n", univention_debug_filename); >+ fprintf(stderr, "Could not open logfile \"%s\"\n", logfile); > return NULL; > } > } >+ univention_debug_filename = logfile; > > univention_debug_flush = flush; > univention_debug_function = function; >@@ -178,6 +179,10 @@ void univention_debug_end(const char *s) > > void univention_debug_reopen(void) > { >+ if (!univention_debug_ready) { >+ return; >+ } >+ > if (univention_debug_file == stderr || univention_debug_file == stdout) > return; > if (univention_debug_file != NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 36603
: 6358