Correctly deal with empty XML files

Previously we could end up with a bogus dive with all zero data in it.

Adding dives/test24.xml to be able to test that we handle this case
correctly.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-09-15 18:32:15 -07:00
parent 0d637c2fa9
commit 421366d0fb
2 changed files with 18 additions and 2 deletions

4
dives/test24.xml Normal file
View file

@ -0,0 +1,4 @@
<dives>
<program name='subsurface' version='1'></program>
</dives>
<!-- intentionally empty dive file - should register as no dives -->