]> Pileus Git - ~andy/rhawk/blobdiff - json.awk
Add at daemon
[~andy/rhawk] / json.awk
index 6a8e96d675d9d3f6a0c6c4c853c1cbf46b746e4e..cfb8eac56c680460b9e12d4c6d7a1e7c3f45a61c 100644 (file)
--- a/json.awk
+++ b/json.awk
@@ -305,6 +305,7 @@ function json_encode(var, pad)
 # File API
 function json_load(file, var,   line, string)
 {
+       delete var
        while ((getline line < file) > 0)
                string = string line "\n"
        return json_decode(string, var)