diff options
Diffstat (limited to 'lib/skin_parser/skin_scan.c')
-rw-r--r-- | lib/skin_parser/skin_scan.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/skin_parser/skin_scan.c b/lib/skin_parser/skin_scan.c index 6b5c189b9f..d18f2224b3 100644 --- a/lib/skin_parser/skin_scan.c +++ b/lib/skin_parser/skin_scan.c | |||
@@ -40,12 +40,6 @@ void skip_comment(char** document) | |||
40 | (*document)++; | 40 | (*document)++; |
41 | } | 41 | } |
42 | 42 | ||
43 | void skip_whitespace(char** document) | ||
44 | { | ||
45 | while(**document == ' ' || **document == '\t') | ||
46 | (*document)++; | ||
47 | } | ||
48 | |||
49 | void skip_arglist(char** document) | 43 | void skip_arglist(char** document) |
50 | { | 44 | { |
51 | if(**document == ARGLISTOPENSYM) | 45 | if(**document == ARGLISTOPENSYM) |
@@ -132,6 +126,8 @@ char* scan_string(char** document) | |||
132 | /* Copying the string */ | 126 | /* Copying the string */ |
133 | cursor = *document; | 127 | cursor = *document; |
134 | buffer = skin_alloc_string(length); | 128 | buffer = skin_alloc_string(length); |
129 | if (!buffer) | ||
130 | return NULL; | ||
135 | buffer[length] = '\0'; | 131 | buffer[length] = '\0'; |
136 | for(i = 0; i < length; i++) | 132 | for(i = 0; i < length; i++) |
137 | { | 133 | { |