Correct bug identified in static analysis
[ric-plt/lib/rmr.git] / test / test_gen_rt.c
index 5748ca1..3afe47b 100644 (file)
@@ -45,7 +45,6 @@ static void gen_rt( uta_ctx_t* ctx ) {
        int             fd;
        char*   rt_stuff;               // strings for the route table
 
-ctx->flags |= 0x08;
        fd = open( "utesting.rt", O_WRONLY | O_CREAT, 0600 );
        if( fd < 0 ) {
                fprintf( stderr, "<BUGGERED> unable to open file for testing route table gen\n" );
@@ -53,6 +52,8 @@ ctx->flags |= 0x08;
        }
 
        rt_stuff =
+               "updatert|start\n"                                                      // update check before whole table received
+               "updatert|end\n"
                "newrt|end\n"                                                           // end of table check before start of table found
                "# comment to drive full comment test\n"
                "\n"                                                                            // handle blank lines