projects
/
wordblah.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of iniz:/home/hari/repos/wordblah
[wordblah.git]
/
wordblah.c
diff --git
a/wordblah.c
b/wordblah.c
index
2dbc366
..
db5c605
100644
(file)
--- a/
wordblah.c
+++ b/
wordblah.c
@@
-340,6
+340,12
@@
void do_open_puzzle (const char *filename)
}
p = load_puzzle (filename);
+ if (p.grid_size == 0)
+ {
+ printf (INVALID_PUZZLE);
+ char ch = getchar ();
+ return;
+ }
if (strcmp (p.hashed_master_password, "\0") != 0)
{