diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:10:24 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-11 23:27:47 -0700 |
| commit | abf6384cca0f80fe7dfb35a8e2281d8664d9d459 (patch) | |
| tree | bc141b463e155b2170d2d70e9bb340614d76644d /vis-cmds.c | |
| parent | 72c26fc09af79ce217575a9b0f0d5058c336d5d7 (diff) | |
| download | vis-abf6384cca0f80fe7dfb35a8e2281d8664d9d459.tar.gz vis-abf6384cca0f80fe7dfb35a8e2281d8664d9d459.tar.xz | |
buffer: delete pointless buffer_init function
lets not make the code harder to read for no reason
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -402,10 +402,7 @@ static const char *file_open_dialog(Vis *vis, const char *pattern) { if (!is_file_pattern(pattern)) return pattern; - Buffer bufcmd, bufout, buferr; - buffer_init(&bufcmd); - buffer_init(&bufout); - buffer_init(&buferr); + Buffer bufcmd = {0}, bufout = {0}, buferr = {0}; if (!buffer_put0(&bufcmd, VIS_OPEN " ") || !buffer_append0(&bufcmd, pattern ? pattern : "")) return NULL; |
