summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-02-15 09:38:28 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2017-12-14 09:39:40 +0000
commit9832f0ab857904a88c9b5e71a9e447abbebca8fb (patch)
treedd1b6e9523e4b75ebd46d4b7412295b2bfa4bb02 /src/widgets
parent6a2609f3799c4f52e8ad28495f9846b057743575 (diff)
Copy argv[0] to prevent it pointing to invalid memory later
If QCoreApplication is recreated, it is possible the previous argv[0] pointer has become invalid, so we should not rely on it. So to prevent that, we copy the original argv[0] to a static QByteArray. Task-number: QTBUG-58919 Change-Id: Idadd4cb78e4281830165fb681ea7925109f316ff Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions