Wireshark-commits: [Wireshark-commits] master-2.2 23bb4de: 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:05:16 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=23bb4de5c937026b19144c40eff3cc4ffd85266d
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

23bb4de 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/26722
    

Actions performed:

    from  a69abe8   [Automatic update for 2018-04-01]
    adds  23bb4de   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(-)