OSDN Git Service
(root)
/
modchxj
/
mod_chxj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71b1d9
)
* Changed trim function when parameter is null.
author
konn
<konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 3 Jul 2008 19:41:22 +0000
(19:41 +0000)
committer
konn
<konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 3 Jul 2008 19:41:22 +0000
(19:41 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_12_0@2793
1a406e8e
-add9-4483-a2c8-
d8cac5b7c224
src/chxj_tag_util.c
patch
|
blob
|
history
diff --git
a/src/chxj_tag_util.c
b/src/chxj_tag_util.c
index
10a6076
..
b8a07f3
100644
(file)
--- a/
src/chxj_tag_util.c
+++ b/
src/chxj_tag_util.c
@@
-157,10
+157,14
@@
qs_alloc_zero_byte_string(apr_pool_t *pool)
char *
qs_trim_string(apr_pool_t *p, char *s)
{
- char *ss
= apr_pstrdup(p, s)
;
- int len
= strlen(s)
;
+ char *ss;
+ int len;
int ii;
+ if (! s) return apr_pstrdup(p, "");
+
+ ss = apr_pstrdup(p, s);
+ len = strlen(s);
ii = 0;
for (ii = 0;is_white_space(*ss) && ii < len; ss++, ii++);