mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -19,7 +19,7 @@ bool ffPrintCommand(FFCommandOptions* options) {
|
||||
|
||||
if (options->splitLines) {
|
||||
uint8_t index = 0;
|
||||
char* line = NULL;
|
||||
char* line = nullptr;
|
||||
size_t len = 0;
|
||||
while (ffStrbufGetline(&line, &len, &result)) {
|
||||
if (options->moduleArgs.outputFormat.length == 0) {
|
||||
@@ -110,7 +110,7 @@ bool ffGenerateCommandJsonResult(FF_A_UNUSED FFCommandOptions* options, yyjson_m
|
||||
|
||||
if (options->splitLines) {
|
||||
yyjson_mut_val* jsonArray = yyjson_mut_obj_add_arr(doc, module, "result");
|
||||
char* line = NULL;
|
||||
char* line = nullptr;
|
||||
size_t len = 0;
|
||||
while (ffStrbufGetline(&line, &len, &result)) {
|
||||
yyjson_mut_arr_add_strncpy(doc, jsonArray, line, len);
|
||||
|
||||
Reference in New Issue
Block a user