diff options
-rw-r--r-- | src/cmd/vac/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c index ac7d4a2a..8f2fd84f 100644 --- a/src/cmd/vac/file.c +++ b/src/cmd/vac/file.c @@ -1774,7 +1774,7 @@ vacfsopen(VtConn *z, char *file, int mode, ulong cachemem) char *prefix; if(vtparsescore(file, &prefix, score) >= 0){ - if(strcmp(prefix, "vac") != 0){ + if(prefix == nil || strcmp(prefix, "vac") != 0){ werrstr("not a vac file"); return nil; } |