diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-04-16 16:47:33 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-04-21 18:07:13 +0300 |
commit | f491b0aa5b86a5242fc4e04218202bbb52d0af39 (patch) | |
tree | 21c6b549358441ee40526840839e0e2b2c841dc8 /hw/xfree86/parser | |
parent | 099946a3ac94ff5e575e9edcecd26cf9f346b241 (diff) |
xfree86: fix not reached code in parser
...because Error is a macro that returns NULL.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'hw/xfree86/parser')
-rw-r--r-- | hw/xfree86/parser/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/parser/read.c b/hw/xfree86/parser/read.c index 1091be5e5..4e42b24f0 100644 --- a/hw/xfree86/parser/read.c +++ b/hw/xfree86/parser/read.c @@ -219,15 +219,15 @@ xf86readConfigFile (void) } else { - Error (INVALID_SECTION_MSG, xf86tokenString ()); free(val.str); val.str = NULL; + Error (INVALID_SECTION_MSG, xf86tokenString ()); } break; default: - Error (INVALID_KEYWORD_MSG, xf86tokenString ()); free(val.str); val.str = NULL; + Error (INVALID_KEYWORD_MSG, xf86tokenString ()); } } |