[file-roller/wip/jtojnar/engrampa-backports: 3/24] application: Use logic operator instead of bitwise




commit 66e4a7159cc4dcde65e4dca0dbb4a2c78d91553f
Author: Jan Tojnar <jtojnar gmail com>
Date:   Tue Jul 26 16:45:39 2022 +0200

    application: Use logic operator instead of bitwise
    
    Based on https://github.com/mate-desktop/engrampa/commit/32c66f997b730f8e4ff6f2b4830f259951ec1112
    
    Co-Authored-By: Monsta <monsta inbox ru>

 src/fr-application.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/fr-application.c b/src/fr-application.c
index 98ffe335..8649b9a5 100644
--- a/src/fr-application.c
+++ b/src/fr-application.c
@@ -303,7 +303,7 @@ handle_method_call (GDBusConnection       *connection,
 
                window = fr_window_new ();
                fr_window_use_progress_dialog (FR_WINDOW (window), use_progress_dialog);
-               if ((destination_uri != NULL) & (strcmp (destination_uri, "") != 0)) {
+               if ((destination_uri != NULL) && (strcmp (destination_uri, "") != 0)) {
                        GFile *file;
 
                        file = g_file_new_for_uri (destination_uri);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]