diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-27 09:11:55 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-27 09:11:55 +0200 |
| commit | 5c22df4e8600d49983f008f22e942a2dd120ad9a (patch) | |
| tree | 1fea8facc57da2303ea71c53c78abf0d6aeed1fe /src | |
| parent | 79500f46632ba50b1640d16983942b940dd7955f (diff) | |
| download | nissy-core-5c22df4e8600d49983f008f22e942a2dd120ad9a.tar.gz nissy-core-5c22df4e8600d49983f008f22e942a2dd120ad9a.zip | |
Fixed checkdata
Diffstat (limited to 'src')
| -rw-r--r-- | src/nissy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nissy.c b/src/nissy.c index 953471f..08cacf0 100644 --- a/src/nissy.c +++ b/src/nissy.c | |||
| @@ -333,9 +333,12 @@ nissy_checkdata( | |||
| 333 | char *buf; | 333 | char *buf; |
| 334 | tableinfo_t info; | 334 | tableinfo_t info; |
| 335 | 335 | ||
| 336 | for (buf = (char *)data; readtableinfo(buf, &info); buf += info.next) | 336 | for (buf = (char *)data; readtableinfo(buf, &info); buf += info.next) { |
| 337 | if (!checkdata(buf, &info)) | 337 | if (!checkdata(buf, &info)) |
| 338 | return 1; | 338 | return 1; |
| 339 | if (info.next == 0) | ||
| 340 | break; | ||
| 341 | } | ||
| 339 | 342 | ||
| 340 | return 0; | 343 | return 0; |
| 341 | } | 344 | } |
