Bug 94375 - Text.c:2519: (error) Dead pointer usage.
Summary: Text.c:2519: (error) Dead pointer usage.
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xaw3D (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 19:18 UTC by dcb314
Modified: 2018-03-30 23:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description dcb314 2016-03-02 19:18:49 UTC
[Text.c:2519]: (error) Dead pointer usage. Pointer 'list' is dead if it has been assigned '&defaultSel' at line 2516.

Source code is

  if (nelems == 0) {
    String defaultSel = "PRIMARY";
    list = &defaultSel;
    nelems = 1;
  }
  _SetSelection(ctx, l, r, _XawTextSelectionList(ctx, list, nelems), nelems);
Comment 1 Alan Coopersmith 2018-03-24 08:07:11 UTC
Patch submitted for code review: https://patchwork.freedesktop.org/patch/212686/


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.