diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/polynom.c | 3 | ||||
-rw-r--r-- | 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'; |