Index: plbuf.c
===================================================================
--- plbuf.c	(revision 8718)
+++ plbuf.c	(working copy)
@@ -1151,7 +1151,7 @@
  */
 void plbuf_restore(PLStream *pls, void *state)
 {
-    struct _state *new_state;
+    struct _state *new_state = (struct _state *)state;
 
 #ifdef BUFFERED_FILE
     pls->plbufFile = new_state->save_file;
