aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m4
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: