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