Re: [lxc-devel] [PATCH] Initialize a pointer in split_init_cmd() to avoid gcc warnings

2016-04-21 Thread Serge Hallyn
Quoting Leonid Isaev (leonid.is...@jila.colorado.edu): > gcc -Wall warns about uninitialized variables (-Wmaybe-uninitialized), and > -Werror makes it fatal. This change allows the build to succeed by NULL'ifying > the pointer passed to strtok_r(). > > Note that strtok_r(3) anyway ignores a non-NU

[lxc-devel] [PATCH] Initialize a pointer in split_init_cmd() to avoid gcc warnings

2016-04-21 Thread Leonid Isaev
gcc -Wall warns about uninitialized variables (-Wmaybe-uninitialized), and -Werror makes it fatal. This change allows the build to succeed by NULL'ifying the pointer passed to strtok_r(). Note that strtok_r(3) anyway ignores a non-NULL arg3 pointer on the 1st call with non-NULL arg1 string. Signe