diff options
Diffstat (limited to 'generic/nanosvg.h')
-rw-r--r-- | generic/nanosvg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/nanosvg.h b/generic/nanosvg.h index 3f9548b..768dd20 100644 --- a/generic/nanosvg.h +++ b/generic/nanosvg.h @@ -284,7 +284,7 @@ static void nsvg__parseElement(char* s, { const char* attr[NSVG_XML_MAX_ATTRIBS]; int nattr = 0; - char* name; + char* cbname; int start = 0; int end = 0; char quote; @@ -305,7 +305,7 @@ static void nsvg__parseElement(char* s, return; // Get tag name - name = s; + cbname = s; while (*s && !nsvg__isspace(*s)) s++; if (*s) { *s++ = '\0'; } @@ -348,9 +348,9 @@ static void nsvg__parseElement(char* s, // Call callbacks. if (start && startelCb) - (*startelCb)(ud, name, attr); + (*startelCb)(ud, cbname, attr); if (end && endelCb) - (*endelCb)(ud, name); + (*endelCb)(ud, cbname); } NANOSVG_SCOPE |