aports/community/gparted/nullptr.patch
2022-04-10 21:04:44 +02:00

12 lines
441 B
Diff

--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -72,7 +72,7 @@
ped_exception_set_handler( ped_exception_handler ) ;
//get valid flags ...
- for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ;
+ for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( 0 ) ) ;
flag ;
flag = ped_partition_flag_next( flag ) )
flags .push_back( flag ) ;