diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-02-02 22:29:53 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-02-02 22:29:53 +0100 |
| commit | c97990e517adca2d0a8c287bddbdd4761f5965f2 (patch) | |
| tree | 3aa4c461e7e5b4bf44fdc01c5de8378d933e5639 /nanosvg/nanosvg.h | |
| parent | 5cd9f6fb8058f92d9434949caaf089e0b900ce64 (diff) | |
Removed all shadow lint in header files (STR #2714).
Diffstat (limited to 'nanosvg/nanosvg.h')
| -rw-r--r-- | nanosvg/nanosvg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nanosvg/nanosvg.h b/nanosvg/nanosvg.h index a5bec7eac..f8e38e8fe 100644 --- a/nanosvg/nanosvg.h +++ b/nanosvg/nanosvg.h @@ -286,7 +286,7 @@ static void nsvg__parseElement(char* s, // Get attribs while (!end && *s && nattr < NSVG_XML_MAX_ATTRIBS-3) { - char* name = NULL; + char* tag = NULL; char* value = NULL; // Skip white space before the attrib name @@ -296,7 +296,7 @@ static void nsvg__parseElement(char* s, end = 1; break; } - name = s; + tag = s; // Find end of the attrib name. while (*s && !nsvg__isspace(*s) && *s != '=') s++; if (*s) { *s++ = '\0'; } @@ -311,8 +311,8 @@ static void nsvg__parseElement(char* s, if (*s) { *s++ = '\0'; } // Store only well formed attributes - if (name && value) { - attr[nattr++] = name; + if (tag && value) { + attr[nattr++] = tag; attr[nattr++] = value; } } |
