mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Fix 301, pragma cols pretty print
This commit is contained in:
parent
cdb5b29bda
commit
0604b3a5e0
@ -1012,8 +1012,15 @@ static int shell_callback(
|
||||
|
||||
osquery::Row r;
|
||||
for (i = 0; i < nArg; i++) {
|
||||
std::string header = std::string(azCol[i]);
|
||||
std::string result = std::string(azArg[i]);
|
||||
std::string header;
|
||||
if (azCol[i] != nullptr) {
|
||||
header = std::string(azCol[i]);
|
||||
}
|
||||
|
||||
std::string result;
|
||||
if (azArg[i] != nullptr) {
|
||||
result = std::string(azArg[i]);
|
||||
}
|
||||
r[header] = result;
|
||||
}
|
||||
p->prettyPrint->queryData.push_back(r);
|
||||
|
Loading…
Reference in New Issue
Block a user