This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
No need for a temporary buffer
xdirname() uses xstrdup() internally so we are safe to use that pointer directly.
master
sin
10 years ago
parent
35f3b250bb
commit
9bc4b92474
1 changed files
with
1 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-3
noice.c
+ 1
- 3
noice.c
View File
@@ -551,10 +551,8 @@ nochange:
goto nochange;
} else {
dir = xdirname(path);
tmp = xmalloc(strlen(dir) + 1);
strlcpy(tmp, dir, strlen(dir) + 1);
free(path);
path =
tmp
;
path = dir;
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
/* Recall history */
Write
Preview
Loading…
Cancel
Save