Michael Stefaniuc : reg: Remove redundant NULL check before heap_free().
Alexandre Julliard
julliard at winehq.org
Tue Jan 29 15:18:17 CST 2019
Module: wine
Branch: master
Commit: cd8eb2445ef98617862d474321795eee47247b3c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cd8eb2445ef98617862d474321795eee47247b3c
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Jan 29 20:38:07 2019 +0100
reg: Remove redundant NULL check before heap_free().
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/import.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/programs/reg/import.c b/programs/reg/import.c
index 779ea28..3e3ad11 100644
--- a/programs/reg/import.c
+++ b/programs/reg/import.c
@@ -645,11 +645,8 @@ static WCHAR *quoted_value_name_state(struct parser *parser, WCHAR *pos)
{
WCHAR *val_name = pos, *p;
- if (parser->value_name)
- {
- heap_free(parser->value_name);
- parser->value_name = NULL;
- }
+ heap_free(parser->value_name);
+ parser->value_name = NULL;
if (!unescape_string(val_name, &p))
goto invalid;
More information about the wine-cvs
mailing list