Skip to content

Commit

Permalink
cmdline: simpler unique_ptr construction
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Feb 16, 2018
1 parent d7621a6 commit 9cbe1c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmdline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ static std::string argByColon(const char* str, size_t pos) {
}

std::unique_ptr<nsjconf_t> parseArgs(int argc, char* argv[]) {
std::unique_ptr<nsjconf_t> nsjconf;
nsjconf.reset(new nsjconf_t);
std::unique_ptr<nsjconf_t> nsjconf(new nsjconf_t);

nsjconf->use_execveat = false;
nsjconf->exec_fd = -1;
Expand Down

0 comments on commit 9cbe1c5

Please sign in to comment.