Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

fix bugs when function with no args in css #5

Merged
merged 2 commits into from
Sep 5, 2016

Conversation

stackluca
Copy link
Contributor

when a css code like this: filter:mask(), the function mask has no args, then the
'array' arg will be null in function 'katana_destroy_array_using_deallocator'

// given a style like this: filter:mask
// when a function with no args, the array  arg will be null,  the call stack blows:
```void katana_destroy_function(KatanaParser* parser, KatanaValueFunction* e)                                                      x
katana_destroy_array(parser, katana_destroy_value, e->args);   ```
using gdb to show arg e :
```(gdb) p *e
$42 = {name = 0x84c140 "mask(", args = 0x0}```
@qfish qfish merged commit f465db9 into hackers-painters:master Sep 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants