aboutsummaryrefslogtreecommitdiffstats
path: root/palm/jconv/files/patch-aa
blob: d849e2516e9360f68aa4870f682d73ef326474eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- jconv.c.orig	Tue Nov  2 23:03:59 1999
+++ jconv.c	Thu May  4 20:05:51 2000
@@ -67,7 +67,7 @@
 	strcpy(infile, "");
 
 	delimChar = ',';	/* standard */
-	m_CommaDelim = 1;	/* standard */
+	m_CommandLineComma = 1;	/* standard */
 	m_UseInfoFile = 0;
 
 	while((o = getopt(argc, argv, "edvht:i:s")) != EOF) {
@@ -76,7 +76,7 @@
 				break;
 		case 'd':	encode = 'd';
 				break;
-		case 's':	m_CommaDelim = 0;
+		case 's':	m_CommandLineComma = 0;
 				break;
 		case 't':	strncpy(title, optarg, 32);
 				title[31] = 0;
@@ -176,7 +176,7 @@
 	FILE*		input;
 	FILE*		output;
 	FILE*		info;
-	tHeader		header;
+	tHeader		header = { 0 };
 	WORD		oddity = 0x008C;  
 	int 		numNonDeletedRecs;  	
 	JFileAppInfoType	appInfo;
@@ -185,7 +185,7 @@
 	int		curDumpLoc;
 	char*	 	tempPopupPtr; 
 	int		usesInfoFile;
-	int		fldLens[MAX_FIELDS];
+	int		fldLens[MAX_FIELDS] = { 0 };
 	unsigned char	holdChr[2];
 	char		endMsg[2048];
 	char		recNumStr[10];
@@ -437,7 +437,7 @@
 	int		i,j;
 	char		dbName[200];
 	int		usesInfoFile;
-	tHeader		header;
+	tHeader		header = { 0 };
 	char 		inputString[MAX_RECORD_LENGTH];  
 	int 		inputStringLoc, inputStringLen;  
 	JFileAppInfoType	appInfo;
@@ -1165,10 +1165,6 @@
 	sprintf(recNumStr, "%d", currentRecord+1);
 	sprintf(endMsg, "Conversion of %s  records in %s to %s was successful!",
 			recNumStr, m_CSVPath, m_PDBPath);
-
-	if(!m_IsCommandLine)
-		MessageBox( endMsg, NULL, MB_OK );
-
 }
 
 int TypeIsString(int t)