mirror of
https://github.com/git/git.git
synced 2026-08-07 08:31:51 +00:00
Merge branch 'jc/rerere-modern-strbuf-handling'
Code clean-up overdue by 19 years. * jc/rerere-modern-strbuf-handling: cocci: strbuf.buf is never NULL rerere: update to modern representation of empty strbufs
This commit is contained in:
@@ -71,3 +71,10 @@ identifier fn, param;
|
||||
{
|
||||
...
|
||||
}
|
||||
|
||||
// In modern codebase, .buf member of an empty strbuf is not NULL.
|
||||
@@
|
||||
struct strbuf SB;
|
||||
@@
|
||||
- SB.buf ? SB.buf : ""
|
||||
+ SB.buf
|
||||
|
||||
Reference in New Issue
Block a user