• SomeDude@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Today, I had a weird issue: A program I worked on for hours would compile and do the (test-) output it was supposed to do. But if I’d declare and initialize another variable (unused), it would be stuck in an endless loop.

    It would only happen with an initialized variable, not with simply declared variables.

    Took me until this evening in my bed to realize that I probably am using another uninitialized variable somewhere in my code and that’s the source of this bug.