tweaks: use a literal NULL instead of a variable that is NULL
Now all calls of mallocstrncpy() have NULL as the first parameter (apart from one call in utils.c, but that can be changed), so the function can be simplified.master
parent
f816da413a
commit
b4a5fac744
|
@ -1984,7 +1984,7 @@ void do_justify(bool full_justify)
|
|||
/* Copy the leading part that is to be used for the new paragraph. */
|
||||
quote_len = quote_length(first_par_line->data);
|
||||
lead_len = quote_len + indent_length(first_par_line->data + quote_len);
|
||||
the_lead = mallocstrncpy(the_lead, first_par_line->data, lead_len + 1);
|
||||
the_lead = mallocstrncpy(NULL, first_par_line->data, lead_len + 1);
|
||||
the_lead[lead_len] = '\0';
|
||||
|
||||
/* Copy the leading part that is to be used for the new paragraph after
|
||||
|
|
Loading…
Reference in New Issue