Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dbfadd.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, char **argv)
const int iRecord = DBFGetRecordCount(hDBF);

SHPDate date;
char bool;
char boolean;

// Loop assigning the new field values.
for (int i = 0; i < DBFGetFieldCount(hDBF); i++)
Expand All @@ -64,9 +64,9 @@ int main(int argc, char **argv)
}
else if (DBFGetFieldInfo(hDBF, i, NULL, NULL, NULL) == FTLogical)
{
if (1 == sscanf(argv[i + 2], "%c", &bool))
if (1 == sscanf(argv[i + 2], "%c", &boolean))
{
DBFWriteLogicalAttribute(hDBF, iRecord, i, bool);
DBFWriteLogicalAttribute(hDBF, iRecord, i, boolean);
}
}
else
Expand Down
Loading