aboutsummaryrefslogtreecommitdiff
path: root/databases/dbf/files/patch-dbf.c
blob: cf2ce4073bc5ee8c49aec1c8d563485da42d51e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- dbf.c.orig	Tue Nov 11 16:48:07 2003
+++ dbf.c	Tue Nov 11 16:48:19 2003
@@ -315,6 +315,7 @@
 		exit(1);
 
 	if (writeLine) {
+		char *flag_byte;
 		if ((record = malloc(record_length + 1)) == NULL)	{
 			perror("malloc"); exit(1);
 		}
@@ -327,7 +328,6 @@
 		//lseek(dbfhandle, rotate2b(db->header_length) + 1, SEEK_SET);
 		
 		/* At this point we look if the following data set is deleted */		
-		char *flag_byte;
 		lseek(dbfhandle, rotate2b(db->header_length), SEEK_SET);
 		
 		if ( (flag_byte = malloc(1)) == NULL ) {