Menu

FP [uninitvar] with mbstowcs()

2021-04-02
2021-04-03
  • Paul Cornett

    Paul Cornett - 2021-04-02
    #include <stdlib.h>
    
    void f(const char* s)
    {
        wchar_t buf[99];
        mbstowcs(buf, s, 99);
    }
    

    t.c:6:14: error: Uninitialized variable: buf [uninitvar]

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.