Bugfix: getProvider sometimes returns NULL and isdnrep crashed ...
This commit is contained in:
parent
6bcf9b4dd1
commit
768c4f414a
1 changed files with 6 additions and 2 deletions
|
@ -24,6 +24,9 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Log$
|
* $Log$
|
||||||
|
* Revision 1.71 1999/07/18 08:40:17 akool
|
||||||
|
* fix from Michael
|
||||||
|
*
|
||||||
* Revision 1.70 1999/07/12 11:37:34 calle
|
* Revision 1.70 1999/07/12 11:37:34 calle
|
||||||
* Bugfix: isdnrep defined print_msg as function pointer, the object files
|
* Bugfix: isdnrep defined print_msg as function pointer, the object files
|
||||||
* in tools directory, declare it as external function.
|
* in tools directory, declare it as external function.
|
||||||
|
@ -1301,7 +1304,8 @@ static int print_bottom(double unit, char *start, char *stop)
|
||||||
else
|
else
|
||||||
*sx = 0;
|
*sx = 0;
|
||||||
|
|
||||||
print_line3(NULL, "Provider", string, getProvider(i),
|
print_line3(NULL, "Provider", string,
|
||||||
|
getProvider(i) ? getProvider(i) : "",
|
||||||
usage_provider[i],
|
usage_provider[i],
|
||||||
double2clock(duration_provider[i]),
|
double2clock(duration_provider[i]),
|
||||||
print_currency(pay_provider[i], 0), sx);
|
print_currency(pay_provider[i], 0), sx);
|
||||||
|
@ -1930,7 +1934,7 @@ static void bprint(one_call *call)
|
||||||
if (call->duration) {
|
if (call->duration) {
|
||||||
print_msg(PRT_NORMAL, "%s %-15s",
|
print_msg(PRT_NORMAL, "%s %-15s",
|
||||||
print_currency(call->pay, 0),
|
print_currency(call->pay, 0),
|
||||||
getProvider(call->provider));
|
getProvider(call->provider) ? getProvider(call->provider) : "");
|
||||||
numsplit(call->num[CALLED]);
|
numsplit(call->num[CALLED]);
|
||||||
print_msg(PRT_NORMAL, "\n");
|
print_msg(PRT_NORMAL, "\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue