Skip to content

Commit

Permalink
Merge pull request #2007 from brauner/2017-12-06/bugfixes
Browse files Browse the repository at this point in the history
coverity: bugfixes
  • Loading branch information
stgraber committed Dec 6, 2017
2 parents 49be8a1 + 070a05a commit fb398f0
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 254 deletions.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -1388,7 +1388,7 @@ static inline bool cgfsng_create(void *hdata)
ret = snprintf(offset, 5, "-%d", idx);
if (ret < 0 || (size_t)ret >= 5) {
FILE *f = fopen("/dev/null", "w");
if (f >= 0) {
if (f) {
fprintf(f, "Workaround for GCC7 bug: "
"https://gcc.gnu.org/bugzilla/"
"show_bug.cgi?id=78969");
Expand Down

0 comments on commit fb398f0

Please sign in to comment.