Wireshark-commits: [Wireshark-commits] master-2.6 cf4a195: If we're reading from a string, don't fc
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 03 Apr 2018 01:04:35 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cf4a195ceff36472ab594115e618208185b6227f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark

Commits:

cf4a195 by Guy Harris (guy@xxxxxxxxxxxx):

    If we're reading from a string, don't fclose yyin.
    
    yyin is initialized to stdin.  When we're reading from files, we set it
    so that it points to the FILE from which we're reading, but when we're
    reading from a string, we don't set it, leaving it to point to stdin.
    
    This means that, just as the "read from the input" routine has to be set
    differently when reading from a file or a string, the "close the current
    input" routine has to be set differently as well.
    
    Bug: 14577
    Change-Id: Ie05880775612867e9037ace2de0cd0a0dd2fabb5
    Reviewed-on: https://code.wireshark.org/review/26719
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 9d87f607ee2ecefaff71f2ab3f2dc3d2dc185399)
    Reviewed-on: https://code.wireshark.org/review/26720
    

Actions performed:

    from  746c87b   GTK+: Switch to the production splash image.
    adds  cf4a195   If we're reading from a string, don't fclose yyin.


Summary of changes:
 epan/diam_dict.l | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)