Commit 3d13f162 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2272] Added changes based on the code review.

parent 3148cf2b
...@@ -1085,7 +1085,7 @@ fi ...@@ -1085,7 +1085,7 @@ fi
AC_MSG_CHECKING([whether optreset variable is defined in unistd.h]) AC_MSG_CHECKING([whether optreset variable is defined in unistd.h])
AC_TRY_LINK( AC_TRY_LINK(
[#include <unistd.h>], [#include <unistd.h>],
[extern int optreset; optreset=1], [extern int optreset; optreset=1;],
[ AC_MSG_RESULT(yes) [ AC_MSG_RESULT(yes)
var_optreset_exists=yes], var_optreset_exists=yes],
[ AC_MSG_RESULT(no) [ AC_MSG_RESULT(no)
......
...@@ -115,7 +115,7 @@ private: ...@@ -115,7 +115,7 @@ private:
if (tokens.size() > 0) { if (tokens.size() > 0) {
// Allocate array of C-strings where we will store tokens // Allocate array of C-strings where we will store tokens
results = new (std::nothrow) char*[tokens.size() * sizeof(char*)]; results = new (std::nothrow) char*[tokens.size()];
assert(results != NULL); assert(results != NULL);
// Store tokens in C-strings array // Store tokens in C-strings array
for (int i = 0; i < tokens.size(); ++i) { for (int i = 0; i < tokens.size(); ++i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment