From: Jamy Timmermans Date: Sat, 7 Nov 2015 12:11:55 +0000 (-0600) Subject: Fix dereference in cwd option X-Git-Tag: 1.1~56^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd5ed5ac63753f31ca5c0ef6d6b81d5fee63e24d;p=platform%2Fupstream%2Fnsjail.git Fix dereference in cwd option --- diff --git a/contain.c b/contain.c index 9b89342..7a90ea8 100644 --- a/contain.c +++ b/contain.c @@ -268,8 +268,8 @@ bool containMountFS(struct nsjconf_t * nsjconf) return false; } - if (chdir(&nsjconf->cwd) == -1) { - PLOG_E("chdir('%s')", &nsjconf->cwd); + if (chdir(nsjconf->cwd) == -1) { + PLOG_E("chdir('%s')", nsjconf->cwd); return false; }