Permalink
Browse files

Fix a use of non-const variable to hold a string literal

  • Loading branch information...
1 parent 6c7f695 commit 8855c146cc477ba2961c752fd3fe70ac268ac4a3 @b4n b4n committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tagmanager/ctags/c.c
View
4 tagmanager/ctags/c.c
@@ -3145,8 +3145,8 @@ static void initializeDParser (const langType language)
{
/* keyword aliases - some are for parsing like const(Type), some are just
* function attributes */
- char *const_aliases[] = {"immutable", "nothrow", "pure", "shared", NULL};
- char **s;
+ const char *const_aliases[] = {"immutable", "nothrow", "pure", "shared", NULL};
+ const char **s;
Lang_d = language;
buildKeywordHash (language, 6);

0 comments on commit 8855c14

Please sign in to comment.