projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f191f3
)
Coverity fixes CID:45 FORWARD_NULL
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Mon, 10 Oct 2011 23:42:58 +0000
(19:42 -0400)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Mon, 10 Oct 2011 23:42:58 +0000
(19:42 -0400)
* src/dired.c (dfr_inner): Make sure bufp is not NULL before
calling pathname_matches_p
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/dired.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index
2fa35d9
..
e957a22
100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-361,7
+361,7
@@
dfr_inner(dirent_t *res,
}
#if USE_MATCH_ARG
}
#if USE_MATCH_ARG
- if (!NILP(match) && !pathname_matches_p(name, match, bufp)) {
+ if (!NILP(match) &&
bufp &&
!pathname_matches_p(name, match, bufp)) {
result_p = 0;
}
#endif
result_p = 0;
}
#endif