summaryrefslogtreecommitdiff
path: root/tikzit/src/common/GraphElementData.m
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-03-25 16:19:46 +0000
committerAlex Merry <dev@randomguy3.me.uk>2013-03-25 16:19:46 +0000
commit1b83e14b1f5640881deeb03c1d11df5197746b64 (patch)
tree15459d01d836db14064f120fdd7a3ab38ef2e421 /tikzit/src/common/GraphElementData.m
parentc0137b33c535eb04f5e7d5628e9a225e226c5b34 (diff)
Fix issues found by the clang static analyzer
Diffstat (limited to 'tikzit/src/common/GraphElementData.m')
-rw-r--r--tikzit/src/common/GraphElementData.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/tikzit/src/common/GraphElementData.m b/tikzit/src/common/GraphElementData.m
index a99a432..0750296 100644
--- a/tikzit/src/common/GraphElementData.m
+++ b/tikzit/src/common/GraphElementData.m
@@ -32,8 +32,10 @@
}
- (id)init {
- [super init];
- properties = [[NSMutableArray alloc] init];
+ self = [super init];
+ if (self) {
+ properties = [[NSMutableArray alloc] init];
+ }
return self;
}