diff dmd/Json.d @ 136:9d194c848e3a

fixed a few null reference bugs, thx sagitario
author Trass3r
date Mon, 13 Sep 2010 23:27:38 +0200
parents e28b18c23469
children
line wrap: on
line diff
--- a/dmd/Json.d	Fri Sep 10 19:14:09 2010 +0100
+++ b/dmd/Json.d	Mon Sep 13 23:27:38 2010 +0200
@@ -24,7 +24,7 @@
 
 void json_generate(Array modules)
 {
-	OutBuffer buf;
+	OutBuffer buf = new OutBuffer();
 
 	buf.writestring("[\n");
 	for (int i = 0; i < modules.dim; i++)