projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
comet2monitorの修正
[YACASL2.git]
/
src
/
word.c
diff --git
a/src/word.c
b/src/word.c
index
d26438f
..
74a2786
100644
(file)
--- a/
src/word.c
+++ b/
src/word.c
@@
-84,6
+84,9
@@
WORD nh2word(const char *str)
WORD w;
assert(sizeof(WORD) * 8 == 16); /* WORD型のサイズが16ビットであることを確認 */
+ if(str == NULL) {
+ return 0x0;
+ }
if(!isdigit(*str) && *str != '-' && *str != '#') {
setcerr(114, str); /* not integer */
return 0x0;