about summary refs log tree commit diff
path: root/src/engine/packer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/packer.c')
-rw-r--r--src/engine/packer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/packer.c b/src/engine/packer.c
index 190749c2..6f34f500 100644
--- a/src/engine/packer.c
+++ b/src/engine/packer.c
@@ -71,10 +71,11 @@ int unpacker_get_int(UNPACKER *p)
 
 const char *unpacker_get_string(UNPACKER *p)
 {
+	const char *ptr;
 	if(p->current >= p->end)
 		return "";
 		
-	const char *ptr = (const char *)p->current;
+	ptr = (const char *)p->current;
 	while(*p->current) /* skip the string */
 		p->current++;
 	p->current++;