Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized local variable temp in Modelica.Electrical.Spice3.Internal.Bjt.bjtNoBypassCode used #1428

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 4 comments
Assignees
Labels
bug Critical/severe issue L: Electrical.Spice3 Issue addresses Modelica.Electrical.Spice3 P: high High priority issue

Comments

@modelica-trac-importer
Copy link

Reported by jfrenkel on 17 Feb 2014 14:18 UTC
In the function Modelica.Electrical.Spice3.Internal.Bjt.bjtNoBypassCode is the uninitialized local variable temp used.


Migrated-From: https://trac.modelica.org/Modelica/ticket/1428

@modelica-trac-importer modelica-trac-importer added bug Critical/severe issue L: Electrical.Spice3 Issue addresses Modelica.Electrical.Spice3 P: high High priority issue labels Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Modified by beutlich on 21 May 2014 20:42 UTC

@modelica-trac-importer
Copy link
Author

Comment by majetta on 20 Jun 2014 08:26 UTC
corrected in 86a902c, ae4a7d4

@modelica-trac-importer
Copy link
Author

Comment by beutlich on 20 Jun 2014 09:39 UTC
Initialization temp:=0; actually is superfluous since temp is assigned a different value before first use.

@modelica-trac-importer
Copy link
Author

Comment by majetta on 20 Jun 2014 10:32 UTC
Replying to [comment:3 beutlich]:

Initialization temp:=0; actually is superfluous since temp is assigned a different value before first use.

Since temp is only assigned a value before use is the if-condition becomes true temp is used in, it is not superfluous to initialize temp with zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Electrical.Spice3 Issue addresses Modelica.Electrical.Spice3 P: high High priority issue
Projects
None yet
Development

No branches or pull requests

2 participants