~ubuntu-branches/ubuntu/trusty/lcd4linux/trusty-proposed

« back to all changes in this revision

Viewing changes to widget_text.c

  • Committer: Package Import Robot
  • Author(s): Bhavani Shankar
  • Date: 2013-12-27 19:19:35 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20131227191935-60rcnq64w59vxuxi
Tags: 0.11.0~svn1200-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Switch libgphoto2 build dep to libgphoto2-6-dev since libgphoto2-2-dev 
    is no longer in the archive

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: widget_text.c 1192 2013-02-13 13:49:22Z volker $
 
1
/* $Id: widget_text.c 1199 2013-05-23 03:07:28Z michael $
2
2
 * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_text.c $
3
3
 *
4
4
 * simple text widget handling
59
59
{
60
60
    WIDGET *W = (WIDGET *) Self;
61
61
    if (NULL == W || NULL == W->data) {
62
 
        error("Warning: internal data error in Textwidget");
63
 
        return;
 
62
        error("Warning: internal data error in Textwidget");
 
63
        return;
64
64
    }
65
65
    WIDGET_TEXT *T = W->data;
66
66
 
73
73
    char *src, *dst;
74
74
 
75
75
    if (NULL == string) {
76
 
        error("Warning: Widget %s has no string", W->name);
77
 
        return;
 
76
        error("Warning: Widget %s has no string", W->name);
 
77
        return;
78
78
    }
79
79
    num = 0;
80
80
    len = strlen(string);