hedgewars/getdocumentpath.m
changeset 2671 7e0f88013fe8
parent 2630 079ef82eac75
--- a/hedgewars/getdocumentpath.m	Thu Dec 24 13:38:20 2009 +0000
+++ b/hedgewars/getdocumentpath.m	Sun Jan 03 15:40:41 2010 +0000
@@ -3,6 +3,5 @@
 const char* get_documents_path() {
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
     NSString *documentsDirectory = [paths objectAtIndex: 0];
-    const char* path = [documentsDirectory UTF8String];
-    return path;
+    return [documentsDirectory UTF8String];
 }