@@ -91,8 +91,8 @@ class hsdis_backend_base {
9191 void * _printf_stream;
9292 int _do_newline;
9393
94- bool _losing = false ;
95- const char * _arch_name = NULL ;
94+ bool _losing;
95+ const char * _arch_name;
9696
9797 virtual void print_help (const char * msg, const char * arg) = 0;
9898 virtual void print_insns_config () = 0;
@@ -142,7 +142,8 @@ class hsdis_backend_base {
142142 _buffer (buffer), _length(length),
143143 _event_callback (event_callback), _event_stream(event_stream),
144144 _printf_callback (printf_callback), _printf_stream(printf_stream),
145- _do_newline (do_newline)
145+ _do_newline (do_newline),
146+ _losing (false ), _arch_name(NULL )
146147 {
147148 /* Make reasonable defaults for null callbacks.
148149 A non-null stream for a null callback is assumed to be a FILE* for output.
@@ -531,7 +532,7 @@ class hsdis_backend : public hsdis_backend_base {
531532
532533class hsdis_backend : public hsdis_backend_base {
533534 private:
534- LLVMDisasmContextRef _dcontext = NULL ;
535+ LLVMDisasmContextRef _dcontext;
535536 char _target_triple[128 ];
536537
537538 void parse_caller_options (const char * options) {
@@ -590,7 +591,8 @@ class hsdis_backend : public hsdis_backend_base {
590591 buffer, length,
591592 event_callback, event_stream,
592593 printf_callback, printf_stream,
593- newline) {
594+ newline),
595+ _dcontext (NULL ) {
594596 /* Look into _options for anything interesting. */
595597 if (options != NULL )
596598 parse_caller_options (options);
0 commit comments