]> andersk Git - moira.git/commitdiff
avoid coredump bug with nULL strings
authormar <mar>
Wed, 24 Apr 1991 10:32:46 +0000 (10:32 +0000)
committermar <mar>
Wed, 24 Apr 1991 10:32:46 +0000 (10:32 +0000)
gdb/gdb_serv.c

index 4d2721ad44f3590069c1af256e5f6bcb086fea98..b32683945546ae8d94abeaa0f78f78981d45024e 100644 (file)
@@ -333,6 +333,7 @@ TUPLE *responsep;
        (void) strcpy(STRING_DATA(*((STRING *)FIELD_FROM_TUPLE(out_tuple,0))),
                       server_id);
 
+       if (parms == NULL) parms = "";
        (void) string_alloc((STRING *)FIELD_FROM_TUPLE(out_tuple, TSV_PARMS),
                     strlen(parms)+1);
        (void) strcpy(STRING_DATA(*((STRING *)FIELD_FROM_TUPLE(out_tuple,1))),
This page took 0.040281 seconds and 5 git commands to generate.