summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c
index ed135d41f64..6ca7da8f1d0 100644
--- a/xlators/mgmt/glusterd/src/glusterd-quota.c
+++ b/xlators/mgmt/glusterd/src/glusterd-quota.c
@@ -386,7 +386,7 @@ _glusterd_quota_initiate_fs_crawl (glusterd_conf_t *priv,
pid_dir, brickpath);
if ((len >= 0) && (len < sizeof(pidfile))) {
pidfp = fopen (pidfile, "w");
- if (pidfp >= 0) {
+ if (pidfp != NULL) {
fprintf (pidfp, "%d\n", runner.chpid);
fflush (pidfp);
fclose (pidfp);