File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -916,14 +916,14 @@ main (int argc, char *argv[])
916916 printf ("Running on GitHub Actions\n" );
917917 gchar * zsyncmake_path = g_find_program_in_path ("zsyncmake" );
918918 if (zsyncmake_path ) {
919- if (strstr (github_ref , "/pull/" )) {
919+ if (strstr (github_ref , "/pull/" ) != NULL ) {
920920 printf ("Will not calculate update information for GitHub because this is a pull request\n" );
921921 } else {
922922 printf ("Guessing update information based on $GITHUB_REPOSITORY=%s and $GITHUB_REF=%s\n" , github_repository , github_ref );
923923 char buf [1024 ];
924924 gchar * * parts = g_strsplit (github_repository , "/" , 2 );
925925 char * channel ;
926- if (strcmp (github_ref , "" ) != 0 && strstr (github_ref , "/continuous/" )) {
926+ if (strcmp (github_ref , "" ) != 0 && strstr (github_ref , "/continuous/" ) != NULL ) {
927927 channel = "latest" ;
928928 } else {
929929 channel = "continuous" ;
You can’t perform that action at this time.
0 commit comments