aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-15 17:08:18 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-15 17:08:18 +0000
commit1bfe991970009b1e7011823a00e676271fc04055 (patch)
treefdacbaac2ea92879e63e1ab4f7a7631dfe634a51 /Source
parent4645fcac921c8ec01b1a07e460fdb538ed4c671b (diff)
downloadsequelpro-1bfe991970009b1e7011823a00e676271fc04055.tar.gz
sequelpro-1bfe991970009b1e7011823a00e676271fc04055.tar.bz2
sequelpro-1bfe991970009b1e7011823a00e676271fc04055.zip
Fix a couple more potential issues found during static analysis.
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m2
-rw-r--r--Source/TableDump.m2
-rw-r--r--Source/TablesList.m7
3 files changed, 6 insertions, 5 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 36ad7be8..2337961f 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -254,7 +254,7 @@
NSDictionary *connection = nil;
NSDictionary *spf = nil;
- NSInteger connectionType;
+ NSInteger connectionType = -1;
// Inform about the data source in the window title bar
[tableWindow setTitle:[self displaySPName]];
diff --git a/Source/TableDump.m b/Source/TableDump.m
index adc28259..90b753a6 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -2534,7 +2534,7 @@
NSMutableString *infoString = [NSMutableString string];
NSMutableString *errors = [NSMutableString string];
NSStringEncoding connectionEncoding = [mySQLConnection encoding];
- NSMutableString *csvLineEnd;
+ NSMutableString *csvLineEnd = [NSMutableString string];
NSDictionary *tableDetails = nil;
NSMutableArray *tableColumnNumericStatus;
diff --git a/Source/TablesList.m b/Source/TablesList.m
index fdd1b029..1b83cfed 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -316,7 +316,7 @@
NSIndexSet *indexes = [tablesListView selectedRowIndexes];
- NSString *tblTypes;
+ NSString *tblTypes = @"";
NSUInteger currentIndex = [indexes lastIndex];
if ([tablesListView numberOfSelectedRows] == 1) {
@@ -377,7 +377,7 @@
*/
- (IBAction)copyTable:(id)sender
{
- NSString *tableType;
+ NSString *tableType = @"";
if ([tablesListView numberOfSelectedRows] != 1) return;
if (![tableSourceInstance saveRowOnDeselect] || ![tableContentInstance saveRowOnDeselect]) return;
@@ -2248,7 +2248,8 @@
// procedures and functions can only be renamed if one creates a new one and deletes the old one
// first get the create syntax
- NSString *stringTableType;
+ NSString *stringTableType = @"";
+
switch (tableType){
case SP_TABLETYPE_PROC: stringTableType = @"PROCEDURE"; break;
case SP_TABLETYPE_FUNC: stringTableType = @"FUNCTION"; break;