Permalink
Browse files

Always initialize databaseInfo

  • Loading branch information...
1 parent b647b35 commit 2495dbb501f4d69915e3e6f861c890ee8f905947 @borisz borisz committed with oschwald Sep 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 LookupService.cs
View
@@ -134,7 +134,7 @@ public class LookupService{
byte [] buf = new byte[SEGMENT_RECORD_LENGTH];
databaseType = (byte)DatabaseInfo.COUNTRY_EDITION;
recordLength = STANDARD_RECORD_LENGTH;
- //file.Seek(file.Length() - 3,SeekOrigin.Begin);
+ databaseInfo = getDatabaseInfo();
lock ( ioLock ) {
file.Seek(-3,SeekOrigin.End);
for (i = 0; i < STRUCTURE_INFO_MAX_SIZE; i++) {

0 comments on commit 2495dbb

Please sign in to comment.