summaryrefslogtreecommitdiff
path: root/mpq/inits.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpq/inits.c')
-rw-r--r--mpq/inits.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mpq/inits.c b/mpq/inits.c
index 97c41656f..084c71e00 100644
--- a/mpq/inits.c
+++ b/mpq/inits.c
@@ -1,6 +1,6 @@
/* mpq_inits() -- Initialize multiple mpq_t variables and set them to 0.
-Copyright 2009 Free Software Foundation, Inc.
+Copyright 2009, 2015 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -29,7 +29,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */
#include <stdarg.h>
-#include <stdio.h> /* for NULL */
#include "gmp.h"
#include "gmp-impl.h"
@@ -40,10 +39,12 @@ mpq_inits (mpq_ptr x, ...)
va_start (ap, x);
- while (x != NULL)
+ do
{
mpq_init (x);
x = va_arg (ap, mpq_ptr);
}
+ while (x != NULL);
+
va_end (ap);
}