projects
/
platform
/
upstream
/
ejdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e28bfd
)
minor perf enhancements
author
adam
<adamansky@gmail.com>
Mon, 12 Aug 2013 05:33:25 +0000
(12:33 +0700)
committer
adam
<adamansky@gmail.com>
Mon, 12 Aug 2013 05:33:25 +0000
(12:33 +0700)
tcejdb/bson.c
patch
|
blob
|
history
diff --git
a/tcejdb/bson.c
b/tcejdb/bson.c
index
3ca2b74
..
d567c80
100644
(file)
--- a/
tcejdb/bson.c
+++ b/
tcejdb/bson.c
@@
-415,8
+415,8
@@
static bson_type bson_find_fieldpath_value_impl(char* pstack, int curr, FFPCTX *
continue;
}
//PUSH
- if (curr > 0) { //add leading dot
-
memset(pstack + curr, '.', 1)
;
+ if (curr > 0) { //add leading dot
+
*(pstack + curr) = '.'
;
curr++;
}
memcpy(pstack + curr, key, klen);