Changeset 10074 for trunk/ippTools/src/pxtables.c
- Timestamp:
- Nov 17, 2006, 6:04:14 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxtables.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxtables.c
r10037 r10074 40 40 41 41 bool pxCreateTables(pxConfig *config) { 42 bool status = true;43 44 42 PS_ASSERT_PTR_NON_NULL(config, false); 45 43 … … 52 50 } 53 51 #endif 52 53 bool status = true; 54 54 CREATE_TABLE(summitExpCreateTable); 55 55 CREATE_TABLE(summitImfileCreateTable); … … 102 102 fgets (line, 128, stdin); 103 103 sscanf (line, "%s", answer); 104 if (strcmp (answer, "YES")) goto escape; 104 if (strcmp (answer, "YES")) { 105 psError(PS_ERR_UNKNOWN, true, "tables NOT deleleted"); 106 return false; 107 } 105 108 106 109 fprintf (stdout, "enter dbh connection password: "); … … 111 114 bool status; 112 115 psString dbPassword = psMetadataLookupStr(&status, config->modules->site, "DBPASSWORD"); 113 if (strcmp (answer, dbPassword)) goto escape; 114 psFree(dbPassword); 116 if (strcmp (answer, dbPassword)) { 117 psError(PS_ERR_UNKNOWN, true, "tables NOT deleleted"); 118 return false; 119 } 115 120 } 116 121 … … 151 156 152 157 return status; 153 154 escape:155 // XXX fix psMetadataLookupStr() to inc ref count156 // psFree(dbPassword);157 fprintf (stdout, "tables NOT deleted\n");158 159 return false;160 158 }
Note:
See TracChangeset
for help on using the changeset viewer.
