| Summary: | Wrong variable checked after a function call | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Sachidananda Urs <sac> |
| Component: | core | Assignee: | Sachidananda Urs <sac> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | gluster-bugs, saurabh, vijay |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
PATCH: http://patches.gluster.com/patch/6162 in master (Check correct variable after function call.) checked the code the variable is updated |
In libglusterfs/src/logging.c: 571 cmd_log_filename = gf_strdup (filename); 572 if (!filename) { 573 gf_log ("glusterd",GF_LOG_CRITICAL, "gf_cmd_log_init: strdup" 574 " error\n"); Wrong variable is checked after the function call. Should be (!cmd_log_filename)