70ac7ee Avoid a variable reuse in get_ostring_attribute

Authored and Committed by nalin 7 years ago
1 file changed. 35 lines added. 27 lines removed.
    Avoid a variable reuse in get_ostring_attribute
    
    Avoid reusing the index variable for a length calculation in
    get_ostring_attribute.  Tomas Mraz's rewrite of both functions carried
    the fix over from get_pstring_attribute, and added checks for NULL
    extension values and extensions with multiple values; incorporate most
    of those changes.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    
        
file modified
+35 -27