projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef13e9a
)
Make name and value outputs of key_nextattr optional.
author
mdw
<mdw>
Thu, 22 Sep 2005 23:00:16 +0000
(23:00 +0000)
committer
mdw
<mdw>
Thu, 22 Sep 2005 23:00:16 +0000
(23:00 +0000)
key-attr.c
patch
|
blob
|
blame
|
history
diff --git
a/key-attr.c
b/key-attr.c
index
2d33b9c
..
61b12d5
100644
(file)
--- a/
key-attr.c
+++ b/
key-attr.c
@@
-117,8
+117,8
@@
int key_nextattr(key_attriter *i, const char **n, const char **v)
key_attr *a = sym_next(&i->i);
if (!a)
return (0);
- *n = SYM_NAME(a);
- *v = a->p;
+
if (n)
*n = SYM_NAME(a);
+
if (v)
*v = a->p;
return (1);
}