diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 6c2990e..919e823 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -451,6 +451,9 @@ static int slbt_init_version_info( int revision; int age; + if (!verinfo->verinfo && !verinfo->vernumber) + return 0; + if (verinfo->vernumber) { sscanf(verinfo->vernumber,"%d:%d:%d", &verinfo->major, @@ -810,11 +813,10 @@ int slbt_get_driver_ctx( } /* version info */ - if (ctx->cctx.verinfo.verinfo) - if (slbt_init_version_info(ctx,&ctx->cctx.verinfo)) { - slbt_free_driver_ctx(&ctx->ctx); - return -1; - } + if (slbt_init_version_info(ctx,&ctx->cctx.verinfo)) { + slbt_free_driver_ctx(&ctx->ctx); + return -1; + } /* link params */ if (cctx.mode == SLBT_MODE_LINK) |