Fix the use of unitialized memory with MBEDTLS_TEST_NULL_ENTROPY

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/library/entropy_poll.c b/library/entropy_poll.c
index 5250a7b..27465f2 100644
--- a/library/entropy_poll.c
+++ b/library/entropy_poll.c
@@ -205,13 +205,13 @@
 {
     ((void) data);
     ((void) output);
-    *olen = 0;
 
+    *olen = 0;
     if( len < sizeof(unsigned char) )
         return( 0 );
 
+    output[0] = 0;
     *olen = sizeof(unsigned char);
-
     return( 0 );
 }
 #endif