From 5728d2b6a023b3f71be74bfcafd5ea6b920df943 Mon Sep 17 00:00:00 2001 From: biouman Date: Tue, 1 May 2001 13:15:06 +0000 Subject: *** empty log message *** --- lib/polynom.c | 3 ++- lib/scalaires.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/polynom.c b/lib/polynom.c index 837df56..84eea37 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -269,9 +269,10 @@ double ply_valuation(polynome poly, double point) char *ply_affichage(polynome poly) { /* routine d'affichage d'un polynome */ - static char buf[BUFSIZ] = { 0 }, temp[BUFSIZ]; + static char buf[BUFSIZ], temp[BUFSIZ]; int count = 0; + buf[0] = '0'; while (poly) { if (poly->degre != 0) { sprintf(temp, "%s*%s^%u ", rat_to_string(poly->coef), mute, poly->degre); diff --git a/lib/scalaires.c b/lib/scalaires.c index 8410e4e..509f126 100644 --- a/lib/scalaires.c +++ b/lib/scalaires.c @@ -119,7 +119,7 @@ rationnel rat_division(rationnel rat1, rationnel rat2) char *rat_to_string(rationnel rat) { - static char resultat[128] = { 0 }; + static char resultat[128]; char temp[64]; resultat[0] = '\0'; -- cgit v1.2.3