summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-25 21:08:49 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-25 21:08:54 -0400
commite4a027e5963bfc5b383677519562d1d4c88bbb13 (patch)
tree84a001d7d8aad603aa7f9732ed0f49206e0079be /util
parentf0fc82b53c2c824f27fde0789904adb58c45b087 (diff)
downloadmc-e4a027e5963bfc5b383677519562d1d4c88bbb13.tar.gz
Make sure i is initialized
Diffstat (limited to 'util')
-rw-r--r--util/muse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/muse.c b/util/muse.c
index dcb2556..624c5c2 100644
--- a/util/muse.c
+++ b/util/muse.c
@@ -38,10 +38,10 @@ static void dumpuse(char *path)
FILE *f;
globls = file->file.globls;
- loaduse(f, globls);
f = fopen(path, "r");
- dumpstab(globls, stdout);
+ loaduse(f, globls);
fclose(f);
+ dumpstab(globls, stdout);
}
static void genuse(char *path)
@@ -107,7 +107,7 @@ int main(int argc, char **argv)
}
if (merge) {
- file = mkfile(argv[i]);
+ file = mkfile("internal");
file->file.exports = mkstab();
file->file.globls = mkstab();
updatens(file->file.exports, outfile);