Skip to content

Commit

Permalink
Merge pull request #75 from AO-StreetArt/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AO-StreetArt committed Jun 30, 2017
2 parents 1383f0e + 1b4d025 commit 0c2a1d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions aossl/logging/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ void LoggingCategory::debug(const char * msg)
}
else
{
int_category->debug(name + "::" + msg);
if (msg) {
int_category->debug(name + "::" + msg);
}
}
}

Expand All @@ -315,7 +317,9 @@ void LoggingCategory::error(const char * msg)
}
else
{
int_category->error(name + "::" + msg);
if (msg) {
int_category->error(name + "::" + msg);
}
}
}

Expand All @@ -327,7 +331,9 @@ void LoggingCategory::info(const char * msg)
}
else
{
int_category->info(name + "::" + msg);
if (msg) {
int_category->info(name + "::" + msg);
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions aossl/zmq/zmqio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ char * Zmqi::crecv() {
zmqi->recv (request);

// Take the data out of the message
rcv_cstr = new char [request->size()];
std::memcpy(rcv_cstr, request->data(), request->size());
if (request->size() > 0) {
rcv_cstr = new char [request->size()];
std::memcpy(rcv_cstr, request->data(), request->size());
}

started = true;

Expand Down

0 comments on commit 0c2a1d2

Please sign in to comment.