git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b694bcb
)
small print refinement
author
kramm
<kramm>
Tue, 30 Dec 2008 23:01:21 +0000
(23:01 +0000)
committer
kramm
<kramm>
Tue, 30 Dec 2008 23:01:21 +0000
(23:01 +0000)
lib/as3/pool.c
patch
|
blob
|
history
diff --git
a/lib/as3/pool.c
b/lib/as3/pool.c
index
4f37956
..
952dcb5
100644
(file)
--- a/
lib/as3/pool.c
+++ b/
lib/as3/pool.c
@@
-181,7
+181,13
@@
char* namespace_tostring(namespace_t*ns)
access = access2str(type);
char*s = escape_string(ns->name);
char*string = (char*)malloc(strlen(access)+strlen(s)+3);
- int l = sprintf(string, "[%s]%s", access, s);
+ if(!s)
+ sprintf(string, "[%s]NULL", access, s);
+ else if(!*s)
+ sprintf(string, "[%s]\"\"", access, s);
+ else
+ sprintf(string, "[%s]", access, s);
+
free(s);
return string;
}