diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 16:17:29 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-20 16:17:29 +0000 |
commit | 629ddf852c8b9b1d5c820496b77bffef78f3214f (patch) | |
tree | 75a7873c60707cd1738b23b2c35b1c3632db74bc /chrome/installer/gcapi_mac/gcapi.mm | |
parent | 035f10f8b0b8b0a220e238e1d7423d5074433975 (diff) | |
download | chromium_src-629ddf852c8b9b1d5c820496b77bffef78f3214f.zip chromium_src-629ddf852c8b9b1d5c820496b77bffef78f3214f.tar.gz chromium_src-629ddf852c8b9b1d5c820496b77bffef78f3214f.tar.bz2 |
More -Wunused-private-field cleanups.
As of http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120716/061102.html
the warning finds more bugs. Fix them.
BUG=none
TEST=none
TBR=owners
Review URL: https://chromiumcodereview.appspot.com/10800052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/gcapi_mac/gcapi.mm')
-rw-r--r-- | chrome/installer/gcapi_mac/gcapi.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/installer/gcapi_mac/gcapi.mm b/chrome/installer/gcapi_mac/gcapi.mm index bb56289..7739449 100644 --- a/chrome/installer/gcapi_mac/gcapi.mm +++ b/chrome/installer/gcapi_mac/gcapi.mm @@ -159,7 +159,7 @@ NSString* WriteData(NSData* data, NSString* system_path, NSString* user_path) { // setuid root, and in that case the kSystemBrandPath path above should have // worked anyway. So only try user if geteuid() isn't root. if (geteuid() != 0) { - NSString* user_path = [user_path stringByExpandingTildeInPath]; + user_path = [user_path stringByExpandingTildeInPath]; if (CreatePathToFile(user_path) && [data writeToFile:user_path atomically:YES]) { chmod([user_path fileSystemRepresentation], Permissions() & ~0111); |