diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:41:40 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:41:40 +0000 |
commit | 200ca8e2fe7556e7d11133ad48209b8dc0ddc348 (patch) | |
tree | 2c4dce79a32292f30a039870922533e64d9f971c /wk5 | |
parent | a9491266135d59b0d24b29175c755e3955d08dde (diff) |
Sun, Apr 28, 2024, 2:41 PM -07:00
Diffstat (limited to 'wk5')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 9d82029..95d4a95 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -45,6 +45,10 @@ bool load(const char *dictionary) { // Open dictionary file FILE *source = fopen(dictionary, "r"); + if (source == NULL) + { + return 1; + } //read each word in dictionary char c; |