Revision: 7170
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7170&view=rev
Author:   hofman
Date:     2011-03-17 12:45:13 +0000 (Thu, 17 Mar 2011)

Log Message:
-----------
zero some variables to avoid warnings

Modified Paths:
--------------
    trunk/NSString_SKExtensions.m
    trunk/PDFAnnotationMarkup_SKExtensions.m
    trunk/SKStatusBar.m

Modified: trunk/NSString_SKExtensions.m
===================================================================
--- trunk/NSString_SKExtensions.m       2011-03-17 12:09:34 UTC (rev 7169)
+++ trunk/NSString_SKExtensions.m       2011-03-17 12:45:13 UTC (rev 7170)
@@ -73,6 +73,7 @@
         buffer = (UniChar *)CFAllocatorAllocate(allocator, length * 
sizeof(UniChar), 0);
     } else {
         buffer = stackBuffer;
+        memset(&buffer, 0, sizeof(buffer));
     }
     
     NSCAssert1(buffer != NULL, @"failed to allocate memory for string of 
length %ld", (long)length);

Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m    2011-03-17 12:09:34 UTC (rev 
7169)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m    2011-03-17 12:45:13 UTC (rev 
7170)
@@ -84,6 +84,7 @@
     NSRect r = NSOffsetRect(bounds, -origin.x, -origin.y);
     NSInteger offset = rotation / 90;
     NSPoint p[4];
+    memset(&p, 0, 4 * sizeof(NSPoint));
     p[offset] = SKTopLeftPoint(r);
     p[(++offset)%4] = SKTopRightPoint(r);
     p[(++offset)%4] = SKBottomRightPoint(r);

Modified: trunk/SKStatusBar.m
===================================================================
--- trunk/SKStatusBar.m 2011-03-17 12:09:34 UTC (rev 7169)
+++ trunk/SKStatusBar.m 2011-03-17 12:45:13 UTC (rev 7170)
@@ -134,7 +134,7 @@
 
 - (void)drawRect:(NSRect)rect {
     NSRect bounds = [self bounds];
-    NSRect textRect, iconRect, ignored;
+    NSRect textRect, iconRect = NSZeroRect, ignored;
     CGFloat rightMargin = RIGHT_MARGIN;
     CGFloat iconHeight = NSHeight(bounds) - ICON_HEIGHT_OFFSET;
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to