projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes a locking bug in chan_lcr. Thanx to WIMPy for that report.
[lcr.git]
/
trace.c
diff --git
a/trace.c
b/trace.c
index
b8dc001
..
9d192da
100644
(file)
--- a/
trace.c
+++ b/
trace.c
@@
-264,6
+264,7
@@
void _end_trace(const char *__file, int __line)
FILE *fp;
struct admin_list *admin;
struct admin_queue *response, **responsep; /* response pointer */
FILE *fp;
struct admin_list *admin;
struct admin_queue *response, **responsep; /* response pointer */
+ int ret;
if (!trace.name[0])
PERROR("trace not started in file %s line %d\n", __file, __line);
if (!trace.name[0])
PERROR("trace not started in file %s line %d\n", __file, __line);
@@
-278,7
+279,7
@@
void _end_trace(const char *__file, int __line)
if (options.log[0]) {
fp = fopen(options.log, "a");
if (fp) {
if (options.log[0]) {
fp = fopen(options.log, "a");
if (fp) {
- fwrite(string, strlen(string), 1, fp);
+
ret =
fwrite(string, strlen(string), 1, fp);
fclose(fp);
}
}
fclose(fp);
}
}