Navigation Menu

Skip to content

Commit

Permalink
Fix uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed Mar 22, 2016
1 parent b7eec0a commit 65a612d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GHKit.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "GHKit"
s.version = "2.0.2"
s.version = "2.0.3"
s.summary = "Objective-C categories and utilities"
s.homepage = "https://github.com/gabriel/GHKit"
s.license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion GHKit/iOS/GHUIColor+Utils.m
Expand Up @@ -71,7 +71,7 @@ + (GH_HSV)gh_hsvFromRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue {

- (GH_RGBA)gh_rgba {
const CGFloat *components = CGColorGetComponents(self.CGColor);
GH_RGBA color;
GH_RGBA color = { .red = 0, .green = 0, .blue = 0, .alpha = 1 };
CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(CGColorGetColorSpace(self.CGColor));
if (colorSpaceModel == kCGColorSpaceModelRGB) {
color.red = components[0];
Expand Down

0 comments on commit 65a612d

Please sign in to comment.