diff options
author | rbuj <[email protected]> | 2021-11-28 09:24:30 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-03-10 22:24:08 +0100 |
commit | 98b80aa2be3add2ce4ef86a79c4e348db43c32d1 (patch) | |
tree | 64886e5734b92cb1ec10eb6fa6b6ce0ccd9216d1 | |
parent | 5eace01ce45cf476d6a4a4d943656894a6287983 (diff) | |
download | pluma-98b80aa2be3add2ce4ef86a79c4e348db43c32d1.tar.bz2 pluma-98b80aa2be3add2ce4ef86a79c4e348db43c32d1.tar.xz |
pluma-document: Redundant null check
-rw-r--r-- | pluma/pluma-document.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pluma/pluma-document.c b/pluma/pluma-document.c index 2bc55995..f2cb8f94 100644 --- a/pluma/pluma-document.c +++ b/pluma/pluma-document.c @@ -2283,8 +2283,7 @@ pluma_document_replace_all (PlumaDocument *doc, &m_end, NULL); } else { - if(replace_text != NULL) - g_free (replace_text); + g_free (replace_text); replace_text = g_strdup (replace); found = pluma_gtk_text_iter_regex_search (&iter, search_text, @@ -2341,8 +2340,7 @@ pluma_document_replace_all (PlumaDocument *doc, pluma_document_set_enable_search_highlighting (doc, search_highliting); g_free (search_text); - if(replace_text != NULL) - g_free (replace_text); + g_free (replace_text); return cont; } |