aboutsummaryrefslogtreecommitdiff
path: root/backends/rng-random.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/rng-random.c')
-rw-r--r--backends/rng-random.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/backends/rng-random.c b/backends/rng-random.c
index 136499d305..601d9dc0c2 100644
--- a/backends/rng-random.c
+++ b/backends/rng-random.c
@@ -106,10 +106,7 @@ static void rng_random_set_filename(Object *obj, const char *filename,
return;
}
- if (s->filename) {
- g_free(s->filename);
- }
-
+ g_free(s->filename);
s->filename = g_strdup(filename);
}