summaryrefslogtreecommitdiff
path: root/src/inp_str.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-03-30 12:28:40 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-03-30 12:28:40 +0000
commitb705d38258991d083c1330f74ee747aaa73aee21 (patch)
tree6e67aec3e970e8f3a17e2726c0e9b0e012f680ac /src/inp_str.c
parent4c1506802fda11d38835f3dcbb781d263c41b41e (diff)
downloadmpfr-b705d38258991d083c1330f74ee747aaa73aee21.tar.gz
[src/inp_str.c] disallow stream=NULL (cf r12520)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12521 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/inp_str.c')
-rw-r--r--src/inp_str.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/inp_str.c b/src/inp_str.c
index 1f1ed0a9e..8f5392fca 100644
--- a/src/inp_str.c
+++ b/src/inp_str.c
@@ -37,9 +37,6 @@ mpfr_inp_str (mpfr_ptr rop, FILE *stream, int base, mpfr_rnd_t rnd_mode)
int retval;
size_t nread;
- if (stream == NULL)
- stream = stdin;
-
alloc_size = 100;
str = (unsigned char *) mpfr_allocate_func (alloc_size);
str_size = 0;