Browse Source

testsem: don't re-parse positional argument twice

Anonymous Maarten 2 năm trước cách đây
mục cha
commit
6a9c692bb9
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      test/testsem.c

+ 0 - 1
test/testsem.c

@@ -302,7 +302,6 @@ int main(int argc, char **argv)
     (void)signal(SIGTERM, killed);
     (void)signal(SIGINT, killed);
 
-    init_sem = SDL_atoi(argv[1]);
     if (init_sem > 0) {
         TestRealWorld(init_sem);
     }