about summary refs log tree commit diff
path: root/hesiod/hesiod.c
diff options
context:
space:
mode:
Diffstat (limited to 'hesiod/hesiod.c')
-rw-r--r--hesiod/hesiod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hesiod/hesiod.c b/hesiod/hesiod.c
index ffae611fe2..998802d8c4 100644
--- a/hesiod/hesiod.c
+++ b/hesiod/hesiod.c
@@ -255,7 +255,7 @@ read_config_file (struct hesiod_p *ctx, const char *filename)
 
   /* Try to open the configuration file. */
   fp = fopen (filename, "r");
-  if (fp = NULL)
+  if (fp == NULL)
     {
       /* Use compiled in default domain names. */
       ctx->lhs = malloc (strlen (DEF_LHS) + 1);