• Thomas Haller's avatar
    cli: don't track output data in global NmCli structure · 29bcfc25
    Thomas Haller authored
    We should not violate the global data to track the output data
    while it is constructed and printed.
    
    Most of the time, we actually clear the output data anyway --
    either before constructing it, or after printing it.
    In some cases we didn't, but I think that is a bug. It's really
    hard to keep track of this.
    
    The output data should belong to a certain scope and get destroyed
    afterwards. Passing it around is very confusing. Don't do that.
    29bcfc25
common.h 3.64 KB