Thread (40 messages) flat view 40 messages, 3 authors, 2016-06-15
STALE3733d

Revision rfc of 6 in this series.

Revisions (6)
  1. rfc current
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]

[PATCH/RFC 04/10] ref-filter: skip deref specifier in match_atom_name()

From: Karthik Nayak <hidden>
Date: 2016-06-15 23:07:14
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Karthik Nayak <redacted>
---
 ref-filter.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/ref-filter.c b/ref-filter.c
index 1542f5f..4af28ef 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -37,6 +37,10 @@ static int match_atom_name(const char *name, const char *atom_name, const char *
 {
 	const char *body;
 
+	/*  skip the deref specifier*/
+	if (name[0] == '*')
+		name++;
+
 	if (!skip_prefix(name, atom_name, &body))
 		return 0; /* doesn't even begin with "atom_name" */
 	if (!body[0]) {
-- 
2.6.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help