diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-26 13:14:54 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-26 13:14:54 +0000 |
commit | 2c558dccc2235bfbd9c8f2114bbffa99c78c4af5 (patch) | |
tree | f22159b831abab0acb06a40c3800bdd32b1cd746 /Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m | |
parent | 6fb53eb4a62184f5ed0d8bdf42ff0973dd552ff9 (diff) | |
download | sequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.tar.gz sequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.tar.bz2 sequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.zip |
Minor MCPKit tidy up, including the resolution of potential issues raised during static analysis.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m index bf8a2599..f6371b03 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m @@ -208,7 +208,7 @@ returnArray = [NSMutableArray arrayWithCapacity:mNumOfFields]; for (i = 0; i < mNumOfFields; i++) { id cellData = nil; - char *theData; + char *theData = NULL; // In fully streaming mode, copy across the data for the MYSQL_ROW if (fullyStreaming) { @@ -270,7 +270,7 @@ break; case FIELD_TYPE_BIT: - cellData = [NSString stringWithFormat:@"%u", theData[0]]; + cellData = (theData != NULL) ? [NSString stringWithFormat:@"%u", theData[0]] : @""; break; case FIELD_TYPE_TINY_BLOB: |