浏览代码

* AnsiDequotedString needs to return empty if it equals "" (bug ID 30220)

git-svn-id: trunk@34494 -
michael 9 年之前
父节点
当前提交
5917b38706
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      rtl/objpas/sysutils/sysstr.inc

+ 0 - 2
rtl/objpas/sysutils/sysstr.inc

@@ -1836,8 +1836,6 @@ var p : pchar;
 begin
 begin
   p:=pchar(pointer(s)); // work around CONST. Ansiextract is safe for nil
   p:=pchar(pointer(s)); // work around CONST. Ansiextract is safe for nil
   result:=AnsiExtractquotedStr(p,AQuote);
   result:=AnsiExtractquotedStr(p,AQuote);
-  if result='' Then
-    result:=s;
 end;
 end;
 
 
 function StrToBool(const S: string): Boolean;
 function StrToBool(const S: string): Boolean;