Update of /cvsroot/sharedaemon/core/src
In directory sc8-pr-cvs1:/tmp/cvs-serv20291
Modified Files:
parse-ed2k.c
Log Message:
Added support to get only element or string (or none of them) in packet_description
Index: parse-ed2k.c
===================================================================
RCS file: /cvsroot/sharedaemon/core/src/parse-ed2k.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- parse-ed2k.c 27 Oct 2003 18:20:57 -0000 1.10
+++ parse-ed2k.c 20 Nov 2003 14:43:01 -0000 1.11
@@ -1012,8 +1012,8 @@
if (!this) return false;
- *element=this->element;
- *string=this->name;
+ if (element) *element=this->element;
+ if (string ) *string =this->name;
return true;
}
|