summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/arbparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c
index 25c1d7b7ad..fac0d510f6 100644
--- a/src/mesa/main/arbparse.c
+++ b/src/mesa/main/arbparse.c
@@ -2916,7 +2916,7 @@ parse_float (GLubyte ** inst, struct arb_program *Program)
* the .). We can have leading 0's here, which parse_integer will ignore,
* so we'll check for those first
*/
- while (**inst == '0')
+ while ((**inst == '0') && ( *(*inst+1) != 0))
{
leading_zeros++;
(*inst)++;